I customized a language package (NCL), where I defined the keywords in NCL.tmLanguage.JSON and some completion entries in NCL.sublime-completions.
Some keywords are now listed twice when editing a NCL file, because it presents in both NCL.tmLanguage.JSON and NCL.sublime-completions.
Some keywords only in NCL.tmLanguage.JSON are not listed.
Question: How do I get a clean and correct completion list?
Related
In vs code i am trying to search for files using : eg ctrl+p and search django contrib auth
It does not show the search terms it focuses main on the files
where as in sublime text: i can see the matched strings also
this is important for me, because i want to see the where the terms are matching
How to get this feature in vscode
When using "change all occurences" in VS Code, it will just search the whole file for matches and change them. Is there a similar feature doing the same thing, but limiting it to function or block scope?
Let's take an example where I would need that: I'm having a React file with several components and want to refactor a class component to a functional component, so I'm changing all occurences of this.props to props. However, I obviously don't want to change all the other class components as well that are supposed to stay class components. :-)
This seems like such a standard use case, but I'm not able to find it anywhere in VS Code. If it's not possible (yet, or for some good reasons) is there another way to achieve what I'm trying to do?
Check out the 'Add Selection To Next Find Match' functionality. It allows you to highlight the first occurrence you'd like to change, then using a keyboard shortcut, highlight the next occurrence and so on until you've selected all the instances you want to change. When all to-be-changed occurrences are selected, you can edit the selected text normally. Just remember to hit the escape key a couple times after editing to return to a single cursor!
Here are the keybindings for the command, it's Cmd+d on Mac:
https://code.visualstudio.com/docs/getstarted/keybindings
I find it very useful when renaming variables, there's also a shortcut to skip occurrences (Cmd+k Cmd+d) in case there is text you don't want to change in between.
Is it somehow possible to autocomplete a whole phrase which has been delimited from earlier on in the file?
For example the following phrase exists:
Agenda:
- Item: [The first item on the agenda]
And I want to be able to type [The f and have the remainder of the phrase appear in the autocomplete pop up.
In Sublime Text, when I have helloWorldTesteStringLong written in an open file, it will show in auto complete list, independence if I in their file or not
How to can I set this configuration in PHPStorm? For show written word in autocomplete list
Please try Hippie Completion (Alt+Slash) - https://www.jetbrains.com/phpstorm/help/hippie-completion-expanding-words.html
I'm trying to get the ACE editor to show auto suggestions for BDD (Gherkin) based stories. Assuming that I have a way to generate a list of snippets in the form
snippet Given a certain precondition with a parameter $aParam is fullfilled
Given a certain precondition with a parameter ${1:aParam} is fullfilled
I do get a nice list of auto suggestions when entering one of words of the first line, however, spaces do stop the auto completion and it restarts with the next word.
Is there a way to get the autocompletion to consider the entire line, except just one word at a time?