What's the opposite of editor.action.addSelectionToNextFindMatch in Visual Studio Code? i.e. undo the last selection it added.
In PhpStorm this is Alt+J and Alt+Shift+J is undo.
In Sublime, this is Ctrl+D, but I'm not sure if Sublime has the opposite.
Sometimes I get overzealous with my keybashing and have to go back one.
Seems like cursorUndo (cmd+u) would do the trick, although it's not a dedicated command for this purpose.
https://github.com/Microsoft/vscode/issues/6872
I might just I did open a PR for it.
I know this has already been answered but I wanted to mention that I published an extension to solve this exact issue and add a few other features like being able to tab through your multiple cursors, remove all multi-cursor selections except the very last one, etc.
Check it out here https://marketplace.visualstudio.com/items?itemName=danseethaler.tab-through-selections
Esc once will un-toggle multiple-cursors.
Pressing Esc again toggles the currently highlighted selection.
As others have said, Cmd + U will undo the last highlighted item if you accidentally select one too many.
Related
IS there a hotkey to remove this? I am not sure if disabling permanently is a good idea cause this could possibly be useful?
Do you have both of these entries in your Keyboard Shortcuts:
One of these versions of the command notifications.hideToasts does not require that the notification be focused - check the when clauses. Thus, Escape should close the notification from anywhere. And does for me, even after typing in the editor. If you don't have the first one shown (without the notificationFocus context key) for some reason - they are both defaults - add it or modify the existing one to remove the focus requirement.
how to keep shown the suggestions popup in visual-studio-code while moving the caret one character in the same word, so I don't have to hit ctrl-space shortcut again?
This should now be possible with VSCode 1.51 (Oct. 2020):
Move cursor to select suggestions
You can now move the cursor while suggestions are showing.
For instance, you can trigger suggestions at the end of a word, move left to see more suggestions, and then use replace to overwrite the word.
Theme: GitHub Light
Unfortunately, this is not possible at this time. If you would to like to report a feature request, it's recommended to do it on their GitHub I couldn't find any duplicates at this time; though it's hard to search for something like this because there are so many verbiage variants. They can better help you in that regard.
Alternatively, you can provide feedback inside the application itself using the 'Tweet Feedback' functionality.
In visual studio code (1.29.1) ctrl+a doesn't do anything for me. I checked keyboard shortcuts and it's mapped to a few select all actions (editor.action.selectAll, etc.) but when I'm in a file and press it nothing happens. How do I select all text in the current file in visual studio code?
Thanks for the comments, it make me realize it must be an environmental issue. Turns out if you have any mapping starting with a key combination that will lock that mapping to the key combo and you can't use it for anything else.
To make save all ctrl+shift+s I had to re-map save as and I mapped it to ctrl+a+s, so everytime I hit ctrl+a it just waiting for second key. In the status bar at the bottom of my editor it said something like "Ctrl+a detected, waiting for second keystroke", which means Ctrl+a won't work on its own. I re-mapped Save As to some unused key combo and it fixed select all.
This question was luckily answered on another thread
I'll post the OG answer here, nonetheless.
Most new comers to VS-Code could resolve this issue with the 2nd method provided by the OG answer:
Goto File > Preferences > Keyboard Shortcuts
in the search bar type this Select All
There's should a couple of results, you'll obviously want the "Select All" result
right click on his line and click on Change When Expression
a textbox would be highlight for you to fill in text. type editorFocus
press enter and done!
The OG answer provides image if you need to confirm that you're doing it right.
side-note: This issue bugged for more than 3 years and is the main reason my I used VS-Community over VS-Code.
So it's nice to finally be able to work normally in this very robust customizable IDE text-editor.
When I use Cmd+K to go to the next occurrence of the selected word, Eclipse leaves behind these red "cursors" right before the copies of the word that I navigate through. If I then edit the last occurrence that I find, Eclipse "helpfully" edits all the occurrences that I've navigated through in the same way. This leaves corruption in parts of my file that I'm not currently looking at, which is really infuriating.
I want to disable this "feature", but I haven't got a clue what to call it, so I don't know how to find the setting that turns it off. Searching the Eclipse preferences for "occurrence" only gives various versions of "Mark Occurrences" for each editor plugin, which doesn't disable this behavior when unchecked.
EDIT: Here's a video displaying the behavior I'm talking about: https://youtu.be/8xeKRLyGSLg
This isn't really given by PyDev, it's a feature added by LiClipse (http://www.liclipse.com/multi_edition_video.html).
After the link is done with Ctrl+K, you can press ESC to remove those links if you don't want the multi-edition to happen (so that when you edit one occurrence you don't edit the others).
I must say this is the first request to have that turned off... I'm pretty certain as I just took a look and there's no setting to do that -- so, unfortunately, until the next release, you have to either live with it, remembering to press ESC if you don't want the multi edition to happen or use a plain Eclipse install with PyDev, but you'd also be without other LiClipse benefits, such as textmate bundles, vertical indent guides, theming integration, etc.
Still, note that ideally, I'd say you should get used to it as it can be a real time-saver -- although I'll implement the setting to turn it off for the next release anyways, as it's something that should really be there ;)
I am using Eclipse Juno, and none of my keyboard shortcuts (e.g. Crtl + *) function at all. I checked in preferences and they're all still set they just don't do anything. This is really annoying, particularly with very commonly used ones like undo and redo. Does anyone have any ideas on how to possibly fix this? Thanks!
The problem's solution ended up being pretty simple, kind of similar to the question linked by #Apprentice but not quite, apparently whoever had been using the program before me linked CTRL+Z to another command as well as undo, so I went to (Window->Preferences->General->Keys) and unlinked it manually, now it appears to work.
One of the common issues (if you're using Windows) is accidental swtich of keyboard layout by pressing [ctrl]+[shift]. You can try using this combination again to see if it helps.
If it doesn't, you may want to have a look at this question: Undo shortcut not working in Eclipse