If I type one letter of the trigger/prefix, the snippet suggestion works to show the built-in snippets from extensions. But, once I type the next letter in the trigger/prefix...the built-in snippet from the extension is gone. Meaning, it is no longer found anywhere in the dropdown list (you won't find it by scrolling). .
Here is a snapshot confirming that the trigger/prefix is removed from the list
I found that with some built-in snippets from extensions, if I type out the entire word, it will reappear. For example, if I want: 'trycatch', it will be populated in the list when I type 't', disappear when I have typed 'tr', but then reappear when the entire trigger/prefix is typed.
How can i get a built-in snippet from an extension to show in snippet search when 2 or more letters of the trigger/prefix are typed? I am using version 1.75.0
I tried looking at the docs of VSCode, but it's too simple to help. I tried looking at my settings (keyword: snippets) and play around with any possibilities, but nothing seemed to fix it. Any google search comes up empty as well.
I've been trying to do a whole word search in VS Code's Vim extension. The cursor is at the top of the file, and I try looking for the word "category" with /\<category\>. I've also tried /\v<category> but that doesn't work either. What am I doing wrong?
All you need to do is type /category, I don't think there is a need for '<' or '>'.
The /\<category\> option does work for me in vscode so it must have been fixed. Hopefully your issue is gone
I have recently been using PHP Eclipse and have got everything set up the way i like it with just one exception.
When i double click on a variable it also highlights the $ which makes it difficult to move to the next occurrence if it is later used without the $ as part of $this as an example.
Does anybody know how or if this can be achieved?
Just use Ctrl-F and search for the exact text you want.
(source: visualstudio.com)
This is the functionality I'm missing (Shift+Alt+Down/Up) as well as the entire column selection with (Shift+Alt+MouseDragging). Only Alt+Click adds separate secondary cursors. Actually when pressing the above button combinations instead of additional cursors I get full line selection.
Not really sure why I cant get the multi-cursor working correctly so would appreciate some help.
How can I remove lines that only contain spaces when using Eclipse Find/Replace prompt. I checked the "Regular Expression" check box, and tried the following, neither of which worked.
^[:space:]*$
and
^\s*$
Find: ^\s*\n
Replace with: (empty)
sry this might be an different answer but you can set the number of blank lines you wish to have after fields, methods and blocks in the formatting dialog of the eclipse preferences. then you can hit ctrl-shift-f to automatically format your code depending on your custom definitions.
have fun!
I was suprised that for XML files edited with Eclipse there is a good solution:
Select the checkbox value named 'Clear all blank lines' in Formatting panel
Window->Preferences->XML->XML Files-> Editor
Save and use the "Ctrl+Shift+F' shortcut
The blank lines will dissappear!
for the find/replace operation, "\n\r\s" regex will work on windows, for unix based system, "\n\s" can be used
as already suggested, you can format your code by Ctl+Shift+F
for manual work, locate a blank line and press Ctl+D (Cmd+D on Mac) <- gives u satisfaction of killing the line with your own bare hands :)
cheer!
This one worked for me for years:
Replace this: [\t ]+$
With nothing
Hope this helps!
Many thanks to lamamac.
In genereal, when you want to do search replace with regular expressions in eclipse the $ sign doesn't work as it should.
Use '\s*\n' instead of '$'
As already suggested, regular expression and replacement is the solution, but such response would have been saving some minutes to me:
click on ctrl+f
use this replacement: