-
Notifications
You must be signed in to change notification settings - Fork 20
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
Support for spell checking code cells? #39
Comments
I previously suggested this in #12. It is still possible to have it in this extension - one could have a list of CodeMirror token types which would be matched against. Comments are easy, variables and functions are tricky because you need to parse CamelCase, snake_case etc and do it wisely - there is no unambiguous way to parse CamelCase when it includes abbreviations etc.. |
Hi @krassowski is it easy to add spell checks for comments here? Or is this something that should be brought up in LSP per your comment in #12 (comment)? |
So my thinking has evolved over time on this one. Three possible solutions:
I think that all solutions are good for specific scenarios. I will likely pursue (2) and (3) at some point (help appreciated); I do not plan to work on (1) but I think it could be sensible for someone interested in a short-term solution to explore that one. |
The CodeMirror integration had to be rewritten to support Lab 4.0 (#128) and it was actually trivial to add spellchecking for comments and strings after the rewrite, so that is now available. |
Thanks @krassowski! Can the code cell checking behavior be disabled via a setting? I am also facing this issue: #141, and despite using the following settings: {
"checkComments": false,
"checkStrings": false
} my code cells are being highlighted. Ideally, I'd only like the Markdown cells to be sanitized. I am using JupyterLab |
In addition to markdown cells, I would also like to see spell checking for code cells
to find typos in variable and function names.
The text was updated successfully, but these errors were encountered: