arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.31k stars 391 forks source link

Add autocorrect/complete to IDE sketch comments and title? #2132

Open V205Arduino opened 1 year ago

V205Arduino commented 1 year ago

Describe the request

Hi. Could a Autocorrect/complete feature be added in code comments and sketch naming? Thank you. Also maybe add an option for disabling it. Sorry if there already is this feature.

Describe the current behavior

Add a comment in any sketch. Try typing a typo and autocorrect/complete won’t fix it.

Arduino IDE version

2.1.1

Operating system

macOS

Operating system version

Monterey 12.6.2

Additional context

No response

Issue checklist

kittaakos commented 1 year ago

Could a Autocorrect/complete feature be added in code comments and sketch naming?

Yes, it should be installed manually as a VS Code extension. This request is very similar to https://github.com/arduino/arduino-ide/issues/1342#issuecomment-1228702088.

IDE2 also has documentation on installing a 3rd party theme; the structure of the extension is the same. Please follow that documentation if you get stuck: https://github.com/arduino/arduino-ide/blob/main/docs/advanced-usage.md#3rd-party-themes

  1. Download version 2.0.1 of the streetsidesoftware/vscode-spell-checker extension from https://open-vsx.org/api/streetsidesoftware/code-spell-checker/2.0.1/file/streetsidesoftware.code-spell-checker-2.0.1.vsix.
  2. When IDE2 is not running, copy the downloaded .vsix file into your plugins folder. The plugins folder is under ~/.arduinoIDE/plugins on Linxu and macOS and on C:\\<username>\\.arduinoIDE\\plugins folder, where <username> is your Windows username. If the plugins folder does not exist, create it.
  3. Start IDE2. ✨

I verified the steps a few minutes ago with 2.1.1, and it works.

https://github.com/arduino/arduino-ide/assets/1405703/dfb4e90b-c862-46ff-a4b0-64abacc91472

Notes:

V205Arduino commented 1 year ago

Wait. So does the plugin work with IDE 2.x.x? You mentioned an error. Bit complex but I will try it. Thank you.