-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Grammar-/spellcheck in all inline comments, not only in latex #350
Comments
I'm not sure about this:
|
thanks for these thoughts! just a quick shot: |
with 1,893,354 installs the community / demand for this extension seems pretty big, which should keep it getting better in identifying the right "comments"... |
This is now implemented upstream, but it will be opt-in (add the language to Note: Only comments in programming languages (C++, Java, etc.) will be checked, not in the markup languages LTEX already supports (there should be no need to check those, either). |
The main reason is that it would be pretty complex to implement it in the current framework. However, as I said, it isn't really useful for markup languages. When you read a program, in order to understand it, you read the code and its comments, which are therefore part of the code/program, in a way. When you read a LATEX document, you usually read the PDF and not the code. This is probably the reason vanilla Markdown doesn't support comments. Another reason is that it wouldn't be possible to make it opt-in without an additional setting, in contrast to programs. Finally, for todo notes, you should really be using |
Feature released in 11.0.0. |
For anyone coming here searching about the "inline comment after code" feature: it works with the command |
after searching in the docs and finding it at valentjn/vscode-ltex#457 / valentjn/vscode-ltex#350 /
Is your feature request related to a problem? Please describe.
Good spelling and grammar in documents written in latex and co is gorgeous.
But there is an other place where broken spelling and grammar is also somehow frustrating:
in comments within code.
This is not only true for inline-comments in latex (where comments are indicated with
%
), but in any coding language.Beside correct spelling and grammar in comments
Having broken spelling in comments make it hard to find the place in code which one has in mind to work on, because there are no results when searching for word or phrases one think one has used in comments...
Describe the solution you'd like
Use the developed matured technology of this extension
also for spelling and grammar check in all comments of (m)any code language(s),
possibly in the same languages the very liked vs-code extension "better comments" supports (it makes it possible to categorize and highlight/colorize comments in an easy way) , see https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments
=> the result would be "even better comments" :-)
Describe alternatives you've considered
keep on writing comments with spelling and grammar errors....
...and keep being faced with the 3 problems mentioned above.
Additional context
none
The text was updated successfully, but these errors were encountered: