Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
V205Arduino opened this issue Jul 9, 2023 · 2 comments
Open
3 tasks done

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

V205Arduino opened this issue Jul 9, 2023 · 2 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@V205Arduino
Copy link

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

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details
@V205Arduino V205Arduino added the type: enhancement Proposed improvement label Jul 9, 2023
@per1234 per1234 added the topic: code Related to content of the project itself label Jul 10, 2023
@kittaakos
Copy link
Contributor

kittaakos commented Jul 10, 2023

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 #1342 (comment).

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.

2132.mp4

Notes:

  • You must pick version 2.0.1 of the vscode-spell-checker. More recent versions are not compatible with IDE 2.1.1.
  • Reference the supported functionality of the extension here.
  • Theia/IDE2 has compatibility issues ([plug-in] Implement VS Code Built-in Commands  eclipse-theia/theia#4050 (comment)) with the spell checker VS Code extensions:
    2023-07-10T10:00:54.480Z root INFO [hosted-plugin: 7512] Error: Command with id 'vscode.executeDocumentRenameProvider' is not registered.
        at t.CommandRegistryMainImpl.$executeCommand (file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:6709350)
        at t.RPCProtocolImpl.doInvokeHandler (file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:6674232)
        at t.RPCProtocolImpl.invokeHandler (file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:6673983)
        at t.RPCProtocolImpl.receiveRequest (file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:6673376)
        at t.RPCProtocolImpl.receiveOneMessage (file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:6672869)
        at file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:6671373
        at file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:2269356
        at r.invoke (file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:2269446)
        at s.fire (file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:2271240)
        at file:///Applications/Arduino%20IDE%202.1.1.app/Contents/Resources/app/lib/bundle.js:2:6675026
    

@V205Arduino
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

3 participants