Starting about a week ago (11/30/2017) I noticed that ctrl+shift+space was no longer working in visual studio (any version) to show the parameter info of a method invocation. I did quite a bit of searching to figure out the problem, especially here on SO, and I couldn't find a solution. I also double-checked my VS settings and even reverted back to an old settings file.
I methodically started closing applications to see if another application was stealing the input. My hunch was right and it turned out to be the Microsoft Teams desktop application. It turns out that Teams already has a similar bug open about shortcut keys related to the Polish language not working correctly when Teams is running. Those details are here: https://microsoftteams.uservoice.com/forums/555103-public/suggestions/32265802-alt-a-and-alt-s-affecting-polish-character-for-%C4%85
Within the above link there is a link to a beta build that fixes the problem for Polish, and it turns out that it fixes the problem for the ctrl+shift+space shortcut too.
Nothing worked for me. I use also Resharper. So I had to reset my VS key bindings and reapply Resharper shortcuts. Only this got me it working. If you do not use resharper then it's enough to only do the first step and reset VS keyboard configuration to default
Reset current keyboard configuration (Tools | Options | Environment | Keyboard | Reset).
Go to ReSharper | Options | Environment | Keyboard & Menus | "Visual Studio" | Apply Scheme.
Had the same issue. I used to press Ctrl + Shift + Space to see the method parameters info and I was stuck when it stopped working. But I figured out that default Visual Studio shortcut settings changed, and now it corresponds to the Ctril + K,P shortcut. You can see it under Edit -> IntelliSens menu. And it is easily changeable to Ctrl + Shift + Space under Tool -> Options , then Environment/Keyboard section.
For me, it was Microsoft Teams that was absorbing the Ctrl + Shift + Space shortcut. I've searched the keybinding definitions in Visual Studio 2022 Tools > Options menu, section Environment > Keyboard and unfortunately I did not find any other alternative for the Edit.ParameterInfo command:
I know I could add a custom shortcut of my preference, but I do not want to have a shortcut which is not universal; when I change computer and I go to a different machine, the same shortcut will not be there.
Then, I decided to go by a more universal thing: The menu shortcut for this option (Press Alt key to see the respective letters underlined). It is located at menu Edit > IntelliSense > Parameter Info, which results in the Alt + E + I + P keyboard shortcut.
Related
I have checked Preferences->Editor->Code completion. Basic code completion is turned on. Shortcut is ^Space. When I click [control]+[space], it is opening spotlight search instead of code completion. How to solve this problem?
You need to change the Mac OS X keyboard shortcuts (Preferences | Keyboard | Shortcuts | Spotlight) and either disable the "Show Spotlight search" shortcut or reassign it to a different key.
As an alternative to yole's answer: Since I did not want to modify my system's shortcuts to have them the same across my Macs, I just edited the shortcut in Android Studio (Android Studio -> Preferences -> Keymap and change Basic Completion).
I've used Option+Space which is not assigned to any global shortcut.
P.S.: This is indeed a nuisance coming from years of Windows usage.
I'm running Android Studio on Windows 10.
File -> Settings -> Editor -> General -> Code Completion
The default hotkeys for Auto-Complete are:
1) Control + Space + Spacebar
2) Control+ Spacebar
Click on Alt+Enter to make Auto Complete
The shortcut is different now but is still working, you just need to click
ctrl + space
. The ^ you see listed in your preferences is the symbol for ctrl on a mac.
On MacOS Ventura (13.0), Ctrl-Space is assigned to switching input sources.
This needs to be disabled or changed to some other keys in System Settings... Keyboard > Keyboard Shortcuts > Input Sources if you want to keep using the same short cut in Visual Studio.
I have this very annoying problem that in Razor Views the Enter, Backspace and the navigation keys frequently do not respond. I have to restart VS to get it back to normal again. Am I missing something?
I had the same problem and solved it by saving the razor file (Ctrl + S). Once I did this I could use the Enter, Backspace and Navigation keys again.
I believe that Alt + Enter may also work.
I don't often get into this state and the above solution does not solve the underlying problem. I believe that it may have something to do with ReSharper but have not figured out if this assumption is true or not.
There are a number of pages that discuss this type of problem:
Link 1
Link 2
Link 3
Please try deleting the hidden '.suo' config from the solution folder.
I know this thread was created some time ago, but this may be an useful tip for someone.
This was happening to me in VS 2010, despite not using R#. After digging through those links #Ryan Spears put in his post I have come across a permanent solution Source. (Note that #Maffelu's solution did work for me, but it can switch back if I accidentally hit Left Alt + Shift).
This is also weird because Left Alt + Shift doesn't seem to change it back, so you have to go to the source: a key binding buried in the Windows Control Panel:
Control Panel > Region and Language > Keyboards and Languages > Change Keyboards > Advanced Key Settings > Change Key Sequence > Select "Not Assigned" for both Switching Input Language and Switch Keyboard Layout.
I've seen the same in Visual Studio 2013 and 2015 CTP.
None of the above solutions worked, but restarting Visual Studio did (after displaying the below warning).
I don't use ReSharper and this still happened. Pressing Control + Tab twice worked for me.
Something that worked for me:
Try Tools > Import and Export Settings... then only select Keyboard.
Search for Bkspce and see if it is being used for anything.
I accidentally had something Global bound to Bkspce, Bkspce which caused a very strange problem.
This happened to me when I installed ReSharper to a Visual Studio that has VsVim installed, and I fixed it by doing the following:
Uninstall VsVim
Reset the keyboard mapping to default in Tools -> Options -> Environment -> Keyboard
Set the ReSharper keyboard shortcut mapping in ReSharper options. (I use ReSharper 2.x or IntelliJ IDEA), and make sure Enter, Backspace, etc work.
Install VsVim and configure its keyboard options.
This issue occurred for me (in VS 2019) after installing a visual studio extension. So try removing any recently installed extensions.
The extension I used was File Nesting.
Note: System reboot didn't fix the problem.
Resharper could be the reason.None of the solutions above worked for me.
First check if Resharper is the problem.
Simply navigate to Tools > Options > ReSharper > General > Click suspend Resharper.
After taking steps above, if it works now as expected,then your problem could be caused by cache.
Clear cache following by the navigation below.
Resharper > Options > General > Clear caches or erase them manually
Or problem can be caused by not matching script tags in the cshtml.(Weird but it was the case that causes my problem)
If you have too many files open in Visual Studio 2010 then Enter or Backspace key will stop working intermittently. Try closing some files and Enter and Backspace key will start working.
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
Something (who knows, possibly even me, though certainly not intentionally) has changed the keyboard mapping in Visual Studio 2008, and I cannot figure out how to get it back to the default.
The symptom that I see as the problem is that when I type the name of a class which is not in a namespace listed in the using statements at the top of the file, the shortcut to add that namespace to the file (expand tooltip), which is, by default, Ctrl + . (period) has been changed to Shift + Alt + F10. There are probably other key settings changed, but this is one that is really annoying me at the moment.
Ways I have already tried to fix the problem which have not worked
Tools, Options, Environment, Keyboard, press Reset button. (The additional mapping scheme is set to Default, but I have also tried VC #2005; neither fixed the problem.)
Tools, Import and Export Settings, re-import C# developer settings
devenv /reset
Using "repair" from the installer.
I know that I could probably fix just this one key binding by customizing it, but I don't want to do that. I want to reset all of the key binding spec to their default settings.
I figured out the problem: Ctrl + . was remapped by FSI when I installed F#. That's why resetting the key mappings didn't fix the issue: I still had F#. And the answer to which other mappings I've lost is, "Those mapped by FSI" (type FSI in keyboard mappings; there are only two).
I came across the same problem, (Tools-Options->Keyboard) View.ShowSmartTag is the field where you can re-assign the shortcut manually to Ctrl + .
I know it's a few months post date, but that should do the trick.
Do you have a "working" visual studio around? You can export the setting (keyboard only settings) from that machine and import it into your machine.
In the default Visual Studio 2008 C# key bindings, both Ctrl + . and Shift + Alt + F10 map to Show Smart Tag.
You can download Visual C# 2008 Keybinding Reference Poster here.
something that happen to me ...
make sure that "F lock" key on the keyboard (if you one of this) is on.. i didn't sew that i turn it off, and nothing work normal. (F5 - open the open dialog, F10 switch to split mode!)
Did you do something like install ReSharper?
If you did, you can fix this by going through your options for Visual Studio and/or the options for ReSharper (Can't remember now) and simply setting them up to continue using Visual Studio Layouts as opposed to that of the Add-in.
I have become accustomed to using F6 to compile the current document. A third-party install appears to have turned this function off. (F6 no longer does anything.)
Can anyone tell me how to get it back?
I'm using VS2008
Tools > Options > Keybord
This dialog lets you bind keyboard shortcuts to your heart's content. BTW this is how you bind keyboard shortcuts to custom IDE macros as well.
Thanks. The dialog: Tools > Options > Keybord
Allowed me to set the keyboard back to Visual C# 2005. So far, this seems to be what I wanted.
VMware's integrated debugging tool did this to me too. You can change this back to whatever you want, but every time you restart Visual Studio your keyboard shortcuts will be changed again.
The only way I could fix this was to remove the VMware debugging tools.
Its become a habit for me to use Ctrl + Shift + B to build my solutions. I know this doesnt answer your question, but I thought I would point it out.
Another keyboard shortcut is use constantly is Alt + Shift + F10. It opens the drop menu from the little red square under a change (the autocorrect type thing, I'm not sure what its called, also works for autocorrect in all the MS apps)