VS Code for Mac - keyboard shortcut to comment a line no longer works - macos

I'm using Visual Studio code on MacOS, version Version 1.25.0 and I'm working with HTML and CSS files.
The keyboard shortcut "CMD+/" doesn't comment out the current line. If I open the edit menu and select Toggle Line Comment, that works fine. I checked keyboard shortcuts and the keybinding for that command shows CMD+/. I tried to re-set it, but I couldn't re-add that keyboard shortcut.
Any ideas how to troubleshoot this problem?

I had the same problem
Use ⌘K ⌘C to comment a line

After commenting you need to add one more space then CMD+/

Related

RStudio Comment shortcut (Ctrl+Shift+C) not working

RStudio v. 1.4.1103
Trying to use keyboard shortcut to comment lines of code in R scripts and Notebook code chunks.
Ctrl+Shift+C has no effect on selected code lines.
Using the menu "Code", "Comment/Uncomment Lines" works as expected.
Checked keyboard shortcuts; "Tools", "Modify Keyboard Shortcuts..." and this shortcut appears to be set up properly. Tried "Reset..." in this dialog with out success.
This functionality was working as expected in a previous version of RStudio.

Deleting a line and inserting in IntelliJ Idea Ultimate

So when I open a new class, it is not in insert mode, I am not sure but seems like when I press i, it goes into insert mode (like vim editor). Also when a line is selected, if I press the delete button it doesn't delete it and had to delete the line character by character. This problem is recent and I wonder if I have accidentally messed up with a setting. I don't have this problem in IntelliJ community edition.
Sounds irritating! Make sure you're not in vim mode (Tools -> VimEmulator), you might want to remove the keyboard shortcut for it too. Also make sure you're not in column mode (Edit -> column mode).
Edit: Uncheck the Vim Emulator

Visual block shift-i(nsert) in VsVim

In GVim on Linux I am used to being able to do Ctrl-V then I type whatever I want at the beginning of the first line, hit Esc and then Vim will insert whatever I typed to every row. I have tried this on VsVim, in Visual Studio, using Ctrl-Q, instead of Ctrl-V, but I does nothing. Is there any way to reproduce this functionality in VsVim?
I'm fairly certain it has nothing to do with my .vimrc file.
Block insertion has been added to VsVim 1.2. I just tested it and it works.
VsVim 1.2 Release Notes

Hotkey for commenting ruby code in Aptana Studio 3 not Working with german keyboard

In Aptana Studio 3 (latest version and all previous versions of 3) I am not able to comment lines via keyboard shortcuts. I have a german keyboard layout.
The default shortcut is CTRL + /, but this doesn't work. Even setting the shortcut in Preferences/General/Keys doesn't work. The command is called Python Toggle Comment.
Using the Commands menu and use Source -> Comments -> Comment Line / Selection comments the lines correctly. In this menu I can also see the hotkey CTRL + / behind the menu entry.
It would increase the speed of writing and testing code, if I could use the hotkey. How can I achieve this?
You can try pulling down a copy of the Source ruble and edit the keybinding to one that works for you. Commands > Source > Edit this bundle. It'll try to do a git clone of the bundle into your "Documents/Aptana Rubles/source.ruble" folder. Then you can edit commands/toggle_comment.rb and change the binding to what works for you.

Navigate To (CTRL + comma) in Visual Studio does not work

The "Navigate To" function (CTRL + comma) does not work on my solution. It gets stuck on "Found 0 matching results" while the little progress bar stays there but is empty.
I searched for some kind of IntelliSense cache file next to the .sln, but all I found was a .suo file which I deleted but it did not help.
Why is it not working?
I had the same problem. I went to Tools > Options... > Environment > Keyboard and clicked Reset. Yes, it will reset any customizations you had, but I figured that was the problem for me (I had an add-in take over Ctrl-, and even when I disabled the add-in it wasn't working). Resetting the keyboard shortcut customizations did the trick.
The command is not "Navigate-To" but actually Edit-GotoAll and it has the keyboard shortcuts of Ctrl-T and the more known one of Ctrl-, (comma).
Reference Default keyboard shortcuts in Visual Studio
💡 Solution 💡
Here are the steps to resolve
Verify it is working by trying the opposite keyboard shortcut. If both shortcuts do not work type in "Edit Goto All" in the command search/execute box of Visual Studio.
Does the command work? If it does not work then do a reset via Visual Studio Options:
Then verify or add the keyboard command to the command in the mapping after the reset.
Type in "Edit.Goto" in the Window commands containing
Then selected Edit.Goto.All:
If you do not see the mapping (#3)
Add the keystroke in the box where bubble 4 is above and click Assign.
Set OK as shown on bubble step 5.
This is for Chinese user only. This is because of the Sogou Pinyin (搜狗输入法)occupy this shortcut system wide. And it won't release if you just uninstall it.
Go to here to disable it: Language->Advanced settings->Change language bar hot keys
Uninstall it is not working, you need disable that setting then uninstall it.
The Navigate To Feature does not use an on disk cache so that shouldn't be the issue.
The only thing I can think of that would cause this behavior is a bad Visual Studio install. I hate making this suggestion but have you tried repairing the install?
Tools > Options... > Environment > Keyboard and clicked Reset.That will work.If you installed the latest version/framework or re-sharper of visual studio then it may happens...
I just got the same problem and solve it by following the instruction I found here: http://social.msdn.microsoft.com/Forums/en-US/vssetup/thread/2bbab30e-3188-406b-b492-eabf8c2fbc0b/
For Chinese users, if you are using Sogou Pinyin, you can turn off Ctrl + Comma thru this.
Use spyxx_amd64.exe in this answer should work for most cases. https://stackoverflow.com/a/43645062/1179950
However, this didn't work for me... For my case, which is caused by language keyboard hotkey setting in Windows. By Sougou Pinyin though I have uninstalled it..
You can unset this in Control Panal (Windows 10):
Region&Language -> Advanced keyboard settings -> Language bar options ->Advanced Key settings panel
Unset all hotkeys you wont use!
For traditional Chinese users, you muse use the old version of new Cangjie.
Ctrl+Comma

Resources