Find which application use Ctrl+Comma - windows

I can't use Ctrl+, in Visual Studio 2013 and Pycharm in windows 8.1. Is there a way to find which application occupy this shortcut/hotkey?
I tried Windows Hotkey Explorer, doesn't work.
Here is the list.
Here is the list of the program I installed:
Any help?

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.

Adding to #happlebao's answer:
As of 2019, in Windows 10, you need to go to Settings > Devices > Typing > Advanced keyboard settings > Input language hot keys, or just press Windows key and search for "Advanced keyboard settings" to find the hotkey settings.
Then disable the Ctrl+, hotkey.

Related

Keyboard shortcuts starting with Alt don't work in VS

Keyboard shortcuts which start with Alt (such as Peek Definition Alt+F12) stopped working on Visual Studio 2015.
When I press Alt key, those underscores appear under menu items (which is default behavior of windows) as shown on image
Other keyboard shortcuts such as F5, and all the ones starting with Ctrl are working properly.
I've found a lot of answers about keyboard shortcut conflicts after installing ReSharper, but I haven't installed it.
Any suggestions?
In my case it was Nvidia's "In-Game Overlay". In case you are running this software, try disabling this in the "Geforce Experience".
The image below shows where to do this:
After long troubleshoting and googling I've combined multiple things and it worked:
Updated the Visual Studio
Resetted keyboard layout with following steps:
2.1. Make sure you have no additional keyboard and displays connected (this could be optional step, but without this the solution was not
working for me)
2.2. From menu open "Tools" and select "Options"
2.3. From left side select "Environment" and click on "Keyboard"
2.4. Change the mapping scheme to "Default"
2.5. Click on "Reset" (You'll be promted something then click on "Yes") and OK
2.6. And now restart the application
Also by the way installed ReSharper and uninstalled (this also plays keyboard shortcuts of Visual Studio) and retried second step
DevExpress Coderush overrides some of the Alt key bindings which prevent Visual Studio using them (ie: Alt Left & Right).
They can be disabled selectively via Extensions -> CodeRush -> Options -> IDE -> Shortcuts -> untick Enabled on right.
I can confirm that it's due to GeForce Experience. Of course, not exactly GeForce Experience's fault since it's meant for gamers. After disabling the In-game overlay under Options (wheel), General, In-game Overlay, alt+F7 worked immediately.

Visual Studio: Shortcut to close window not working

I changed the shortcut to close a window to Ctrl+W and to close all windows to Ctrl+Shift+W. Close all windows works fine, but Ctrl+W selects the word currently under the cursor but does not close the window.
When I right-click a tab it say Ctrl+W is the shortcut to close it (And also Ctrl+S to save and Ctrl+Shift+W to close all). Why is only the close window shortcut not working?
In Visual Studio (VS 2015 in my case but it's similar down to VS 2010 at least) keyboard shortcuts may have a different meaning depending on the context in which they are executed.
Click Tools / Options / Environment / Keyboard to look up or define shortcuts (you already did that probably). What I called "context" is selected in the combobox labelled "Use new shortcut in:". Most likely you defined the shortcut in "Global" but you want it to work in "Text Editor". In the latter Ctrl+W selects the current word.
Redefine Ctrl+W for "Text Editor" and you should be fine.
I am using Visual Studio 2017 & Visual Studio 2019 and tried the answer from #TobiMcNamobi but it didn't work for me. After few such tries I got it work with below steps.
You should add it as Global shourtcut otherwise it will not work for Designer views.
Add CTRL+W as a Global shortcut for Window.CloseDocumentWindow
Remove the CTRL+W shortcut for Edit.SelectCurrentWord
In Visual Studio 2019 it is Ctrl-F4 by default to CloseDocumentWindow. The action is Window.CloseDocumentWindow. I know this is old but the accepted answer has you change the short-cut key instead. I would rather use the default option.
Tools -> Options -> Environment -> Keyboard
If you're ever unsure go to the path above and you will see the image above then you can click inside the box "Press shortcut key" at the bottom of the form and type the short cut key you're interested in and it will tell you if it is used and what it is currently used for.
You can also reference the docs
https://learn.microsoft.com/en-us/visualstudio/ide/default-keyboard-shortcuts-in-visual-studio?view=vs-2019
2021: For Visual Studio 2019:
See: https://gist.github.com/jpoehls/2030795#gistcomment-2335647
In my case, I had to existing assignments that I had to remove. Thereafter, I could use the hotkey.
In my case, the tabs were not closing because I am using Vim extension. I had to add the following lines to Vim settings:
"vim.handleKeys": {
"<C-w>": false
}
Just press Ctrl + , or Command + , for Mac users, search for Vim and go into Edit in settings.json as the following picture shows:
Screenshot
For Visual Studio 2022, make sure you also remove Ctrl+W from selectCurrentWord command.
In my VS Pro 2019, on Tools / Options / Environment / Keyboard, the first line offers using a premade keyboard mapping scheme, with a drop-down option for VSCode keyborad mapping theme.
I picked it and it seems to have adopted the keyboard shortcuts I was used to from working on VSCode, Ctrl+W included.
For those using linux with VSCode v1.56.2,
File --> Preferences --> Keyboard Shortcuts.
Search for View:Close Editor and as mentioned above, remove any keybinding that has the keybinding you want.

Ctrl +Shift + Enter not working with Visual Studio 2013 power productivity tools

I have two computers at home. Both have Visual Studio 2013 with power productivity tools extension. The only difference is one computer has windows 7 while another is running windows 8.1.
Both are running same edition of visual studio and latest updates are installed. But on windows 8.1 machine pressing Ctrl + Shift + Enter does not put semicolon while with windows 7 it's working fine.
Can anyone please tell me is that OS specific problem or there is a bug in power productivity tools for visual studio 2013.
reference: http://abhijitjana.net/2010/07/21/use-shiftenter-to-add-automatically-at-end-of-the-line-visual-studio-2010-productivity-power-tool/ - This link is for visual studio 2010 but now visual studio 2013 got same functionality with Ctrl + Shift + Enter.
Just tested it on mine (VS2013 w/Power Tools) in a C# file on windows 8.1 and it worked.
My recommendation is that you verify that the mapping (Edit.LineOpenBelow) is mapped to the keystroke.
Do you have other tools which may have taken the mapping such as Resharper?
If the mapping is there and appears to be assigned, try to change the mapping and see if it it works or fails. The mapping can be found in the keyboard options here:
Apparently in Windows 8 (and Windows 8.1) a special shortcut was added to run a task without showing the UAC notification to grant administrator privileges when running a specific application.
Surprisingly the shortcut is Ctrl + Shift + Enter.
Source: http://www.tekrevue.com/tip/command-prompt-administrator-shortcut/
So the question is how to disable it and if it will solve your issue:
You can disable the sequence Ctrl + Shift in Windows 8.
In "Control Panel" | "Clock, Language and Region" | "Language" click "Advanced Settings" in the left pane.
In "Advanced settings" click "Change Language bar hot keys"
In "Text Services and Input Languages" click "Change Key Sequence" button and disable the the key sequence by selecting the "Not
Assigned" radio buttons.
Source: https://superuser.com/questions/604790/how-to-disable-ctrlshift-keyboard-layout-switch-in-windows-8
Or you can try to disable the UAC:
Open up the Start screen, search for UAC, and you should see an option
for User Account Control settings. If you don’t, you’ll need to change
to search through your Settings first, but then you should see it.
And then you can drag the slider all the way to the bottom, the same
as for the other versions of Windows.
Source: http://www.howtogeek.com/howto/windows-vista/disable-user-account-control-uac-the-easy-way-on-windows-vista/
You can also try using SharpKeys to redefine the specific keyboard sequence:
Download link: http://www.randyrants.com/2011/12/sharpkeys_35/
Guide: http://www.askvg.com/customize-any-key-in-your-keyboard-using-sharpkeys/
Now, after doing it, please try the hotkey in VS2013.
Let me know if that support your issue,

Resharper - not able to configure individual keyboard shortcuts

I am a long time CodeRush user trying out Resharper 9 with VS 2013. I am not able to find the option for configuring individual keyboard shortcuts. I don't see list of commands under Environment > Keyboard & Menus as mentioned in the documentation. 'Apply Scheme' keeps the screen unchanged. What am I missing here?
https://www.jetbrains.com/resharper/webhelp60/Configuring_ReSharper__Configuring_Keyboard_Shortcuts.html
You can configure ReSharper's keyboard shortcuts just like Visual Studio's - in Visual Studio's own keyboard dialog - Tools → Options → Keyboard. All ReSharper commands begin with "ReSharper" if you want to filter them.

un-resolve a resharper conflict with Visual Studio

I am using VS 2012 with Resharper 7. I had resolved a conflict for a VS command and now I want to undo it.
That is, I want to use the Resharper command for that particular command. I am not asking about changing the whole scheme.
This link only informs on how to resolve a new conflict. What about a conflict that I had resolved earlier and now I want to change it?
You have to just re-assign it manually the way you would set up any other keyboard shortcut. Go to Tools -> Options -> Environment -> Keyboard to set up the shortcuts. All Resharper commands start with "Resharper", so type that in the box under "Show commands containing:". At that point you just need to find the command you want and set the keyboard command for use in "Text Editor".
You can reapply the ReSharper keyboard shortcut bindings in the options dialog (Environment → Keyboard & Menus) and hitting "Apply shortcuts".

Resources