-
Notifications
You must be signed in to change notification settings - Fork 212
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
code completion ignore words in comment and string #553
Comments
Using external API file is duplicate of #59. VB and VBS need changed generate keywords from external API files. "scan each word in my comments and give them as proprosal" can be fixed by adding |
Add new option "Scanning words in comment." seems would be a better approach, words in comment will be ignore when the option is unchecked and typing outside comment, typing inside comment will still scan whole document. Similar option "Scanning words in string." can be added too, implementation is easy with following pseudo code: if (not bScanWordsInComment and not IsCommentStyle(currentStyle)) {
// add comment styles into ignored style list
}
if (not bScanWordsInString and not IsStringStyle(currentStyle)) {
// add string styles into ignored style list
} |
OK. But what's the point with scanning comment ? Why scanning them ? They are usually explanations for the dev, not keywords, correct ? |
Possible to find identifiers in code sample inside comment? not finding words inside comment might be behavior change for non-programming source file (configuration file, YAML, etc.). |
I think we can add following options ("Plain Text" is used for #338) to custom auto-completion: |
Excellent !
Le ven. 6 janv. 2023 à 11:58, Zufu Liu ***@***.***> a écrit :
… I think we can add following options ("Plain Text" is used for #338
<#338>) to custom
auto-completion:
[image: auto-completion]
<https://user-images.githubusercontent.com/2289926/210998941-7c79c845-8c2d-45e2-bac6-58a6b81497a0.png>
—
Reply to this email directly, view it on GitHub
<#553 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOWOFY4ZNQWM6SRMXXKF4WTWQ73F7ANCNFSM6AAAAAASL4WCQQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
One foot after the other ! :) |
The two "Comment" options are implemented, feel free to test latest builds (e.g. from https://github.com/zufuliu/notepad2/actions/runs/4937266158). |
This feature is full implemented now. |
while coding in VBS, the completion function scan each word in my comments and give them as proprosal, it's really irrelevant. why not the possibility to choose one or many external files that the dev could control ? So only correct proprosals could be made ?
The text was updated successfully, but these errors were encountered: