I see that in Tools -> Options -> Keyboard you can set Keyboard shortcuts for a large number of tasks. I tried searching for "Close" and these are the results, amongst a few others:
File.Close
File.CloseAllButThis
File.CloseProject
File.CloseSolution
If I set File.Close to be Ctrl+W (Honestly, why doesn't Microsoft innately support such a universal shortcut is beyond me) it mostly works, however if I have both the code-behind and the Designer view open for a form, it closes both tabs. Should I be setting a different command, or am I stuck with this? It's a small inconvenience, but it really irritates me.
I don't know if it's the same in VS2010, but in VS2012 this command is called "Window.CloseDocumentWindow" and it is mapped to Ctrl+F4 by default, to mirror Alt+F4 for closing application-level windows.
I believe the Ctrl+W shortcut was first brought to Microsoft Windows by Adobe Photoshop, a carry-over from Apple OS X, where Adobe seems to have remapped all of the ⌘ command+* shortcuts to Ctrl+*. On OS X, ⌘ command+W only closes windows, but the application stays resident. One uses ⌘ command+Q to quit applications, instead. As the window is the application in Windows, Ctrl+W is kind of a misnomer, but it has gotten more popular for some applications like web browsers to support it.
Given the market dominance of MS Windows over Apple OS X for desktop operating systems, it would seem that the F4-style shortcuts are "more universal" than the W/Q ones.
Use CTRL+F4 to close current window, to close all window of visual studio and shut down use - ALT+F4 .
Go to Tools -> Options -> Keyboard Apply "visual studio code" additional keyboard mapping scheme
Related
I'm having problem using one of the shortcuts in VS Code ctrl + shift + L but it works from selection menu.
I have noticed there is a loading circle above cursor when I press that shortcut (even in other apps) and I assumed maybe it's a different shortcut for windows which overrides it.
is there any app that would show me what is triggered when I use shortcuts in windows 10?
VS code developer shortcut troubleshooting doesn't recognize any shortcut but it does for ctrl + shift + S(workbench.action.files.saveAs) for example.
AMD Radeon software was interfering with the shortcut on the background.
disabled it on "hotkeys" section.
It didn't solve every shortcut malfunction, it resolved after I updated the graphic driver.
One of my favorite Delphi IDE keyboard shortcuts is the handy Ctrl-K-I, that let's me indent a block of code that contains existing indents, and which indents the selected set to the right, while keeping all lines in the block at their same relative indent.
I was using this shortcut, but I apparently hit a wrong key on the keyboard. Suddenly I found that ALL keyboard shortcuts had stopped working -- in ALL versions of Delphi on this Windows 10 PC.
Windows shortcuts like Ctrl-V still work, and GExperts shortcuts also still work, but the Delphi key mapping shortcuts in the IDEs no longer work.
I would think this would be some sort of Windows connection used between all Delphi IDEs and Windows, but I haven't found anything to fix this yet.
Any clues?
For some reason the "ctrl+right" / "ctrl+left" keybindings does not work for me in visual studio code. I took a screenshot of my keybindings.json and the Keyboard Shortcuts Troubleshooting:
I've tried the same mapping without the "when" condition or different value but it didn't seem to do anything.
If I change the keybinding to other keybinding like "ctrl+shift+right" or "cmd+right" then keybinding activates. The output here suggests that the keybinding is not found by VS code.
Is there something special about Ctrl+Right/Ctrl+Left key combo?
I am using macOS Big Sur. I didn't touch any default system keybinding. I googled around for mac OS system keybinding but nothing came up under the "ctrl+right"/"ctrl+left" combo.
Before I switch over to VS code I was using Webstorm, which had this keybinding for many years. I never had any problem with it.
I'd appreciate any help or info.
Ctrl+Left/Right maps to desktop switching in macOS by default. So you need to go to Keyboard > Shortcuts in the System Preferences and remove Ctrl+Left/Right from Mission control
See
Use Mission Control on your Mac
How can I make ctrl+right/left arrow stop changing Desktops in Lion?
Is there a keyboard shortcut for OSX Mavericks to show all windows, even the minimized or hidden ones for an application?
I hate having to use my mouse to click on the Chrome icon to open my other chrome windows.
The keyboard shortcut to show all windows for an application is Ctrl+Down then switch between these windows using arrow keys.
To change the keys used for the shortcut to whatever you want, go to System Preferences-> Keyboard-> Shortcuts-> Mission Control-> Application Windows.
It's under the system preferences for Mission Control: there's a shortcut defined there for "Application windows", currently set to ctrl + down arrow
Works for open and minimised windows for your currently chosen application.
Ctrl + ▲ (up arrow) works on my Mac
You can setup a "hot corner" and select "Application Windows". Also you would see the file history in a banner so that you could also access to your files that are minimised.
I am new to Mac and have been surprised from the absence of keyboard shortcuts for opening applications. According to the instruction (http://support.apple.com/kb/PH3957) :” You can’t define keyboard shortcuts for general purpose tasks such as opening an application or switching between applications”.
In Windows assigning keyboard shortcuts for opening applications is very easy. What is the way in Mac OS?
I think you may want to ask this question on Ask Different instead of stack overflow.
As a preliminary answer, though, a quote from the Use global keyboard shortcuts Help text provided by Apple concerning system keyboard shortcuts:
Note: You can create keyboard shortcuts only for existing menu commands. You cannot *define keyboard shortcuts* for general purpose tasks such as opening an app or switching between apps.