Need help with preferences in 2.0

I had the old IDE set up to open a new sketch that I had written. I can’t seem to find a way to change the default new sketch.

Also, I have all of my libraries on a cloud drive so I can use them from multiple computers. The option to change the libraries location seems to be missing or I can’t find it because I’m old and can’t see. LOL

Thanks

Your topic has been moved to the dedicated IDE2.0 section of the forum.

As far as I know, the 'new' is hard coded.

Can't answer about the libraries.

1 Like

AFAIKT the 'Sketchbook location' setting is still there in v2.0.0. I don't think there was a separate Library location setting?

The Arduino IDE developers are tracking the request to make this code easier to customize here:

For now, you can modify the File > New sketch by editing the file at this subfolder of the Arduino IDE installation:

resources/app/node_modules/arduino-ide-extension/lib/node/sketches-service-impl.js

The sketch is defined by the code that looks something like this:

        await (0, util_1.promisify)(fs.writeFile)(sketchFile, `void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}
`, { encoding: 'utf8' });
        return this.loadSketch(node_1.FileUri.create(sketchDir).toString());

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.