Comments (5)
Any suggestion for the path? I was thinking on using a example file, like 0. Startup sketches / Default.ino ....
from arduino.
Well, I'm not sure if it should be just a simple .ino file that it loads from somewhere, or a full sketch folder that it loads from somewhere. (Using a full sketch folder allows loading multiple tabs as the default starting point for advanced users.) As far as locations, I can think of two valid possibilities: Either in the configured sketch folder, or in the preferences folder (i.e. where idesettings_v104.txt resides). Hiding it in the preferences folder could be taken as more annoying to update. But, really, how often would one want to change this? It should be an intentional action to update it, instead of accidental as might happen in the sketches folder.
from arduino.
Yes I know, I was thinking just to not break the current directory schema a lot, or just to place the template where it makes sense. Right now the template is the same of one of the arduino samples, so it makes sense to have a "live" example that can be modified. But it might be a bit confusing
from arduino.
I agree that having it a "live" example might be a bit confusing. That is why I was suggesting the preferences path. It's out of the way, but still an existing path that the IDE knows about. Stretching the scope of a preferences setting to include the default sketch doesn't seem to me that far of a stretch. I will, however, stand by not having it in the distribution path, for the same reasons that one shouldn't install user/3d-party libraries in the distribution path...
Almost seems to be a question of what type of support you want to provide to this. Help pointing people to the correct location for changing the default sketch in the preference folder, or helping people who break this by some how fudging up the default in the sketch folder. Choice of evils. ;-)
I wonder if the forum thread would be a good place to get multiple points of view (or if that would just muddy the already murky waters)...
from arduino.
I added this as a new "Example" fc526ac
If is not present, it loads the default one :)
from arduino.
Related Issues (20)
- Replace in the Find/Replace dialog should not replace anything when there is no selected text
- More than 1 window per sketch is being open
- Missing chars on Serial Monitor
- Autosave HEX file in sketch folder HOT 1
- Find how to add "Pin to Start" in Windows 7 or newer
- Link the taskbar progress to the compilation progress
- Build size isn't reported correctly
- Load last file on startup
- 'Use external editor' on an instance by instance basis. HOT 1
- white spaces in path prevent Compilation speed-up HOT 6
- Skip the 'processing' step HOT 1
- allow #defines to be passed to the compilation process (aka -D option on GCC) HOT 2
- Option to autosave when compiling HOT 1
- Switch serial port detecting Serial.begin(<bauds>); HOT 3
- Start find and replace dialog with the current selection
- Allow any Hex file upload HOT 1
- Tab/spaces options for the editor
- Support for Boards with Arduino Bootloader HOT 2
- Add a warning when External editor is enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino.