5,603 questions
190
votes
12
answers
242k
views
Is there a keyboard shortcut (hotkey) to open Terminal in macOS?
One of my primary tools used for programming is my Terminal. It makes my programming process more efficient when I'm able to quickly open a Terminal window.
In Ubuntu, I was using (window+Alt+T) to ...
1034
votes
35
answers
1.2m
views
Multiline editing in Visual Studio Code
Is it possible to enable multiline editing like in Sublime Text?
For example, press Ctrl to place additional cursor carets and being able to write/delete on multiple places in the document at one ...
1
vote
1
answer
78
views
Xcode Editor Hide Change pop up menu has a keyboard shortcut but the symbol following the command key isn't obvious
Not a code question but an Xcode UI question...
One might guess that to hide a version change you might choose command + space but that isn't right.
Searched the Key Bindings and didn't find anything ...
0
votes
0
answers
32
views
SwiftUI arrow key keyboard shortcuts don't function for iPad
I would like to use the arrow keys as keyboard shortcuts in an app that I am building for iOS/iPadOS, for the sake of users with a hardware keyboard.
The following code works fine for iPhone, but not ...
3
votes
1
answer
1k
views
How to hide IntelliJ IDEA's "Background tasks" window using the keyboard?
IntelliJ IDEA's Background Tasks window can be shown by following Window → Background Tasks → Show in the main menu.
But once it's open, I can only hide the window by clicking on the top right dash ...
951
votes
22
answers
500k
views
How to move the cursor word by word in the OS X Terminal
I know the combination Ctrl+A to jump to the beginning of the current command, and Ctrl+E to jump to the end.
But is there any way to jump word by word, like Alt+←/→ in Cocoa applications ...
0
votes
0
answers
42
views
How to make repeatable chords in VSCode
I have a key binding such as alt+s alt+u. It works when i hold down both keys alt and s, then just press u. But if I press u again, it doesn't repeat; i must release alt and s, then hold them down ...
1
vote
2
answers
12k
views
How do I change Ctrl to Spacebar for these three commands?
I want to change the use of Ctrl to Spacebar for three commands in a game but not for everything because then I can't use Spacebar to communicate. The normal commands are Ctrl+Q, Ctrl+W, Ctrl+E, Ctrl+...
12
votes
6
answers
30k
views
VSCode: "Markdown Preview" SHIFT-COMMAND-V not working
Setup:
VSCode 1.50.1
MacOS High Sierra (10.13.6) - but I think this applies to any OS
Steps to Reproduce:
this is a quick simple one...
click on/hghlight/open a markdown file (.MD extension) in ...
38
votes
3
answers
22k
views
How to accept only the next word in GitHub Copilot suggestion?
I would like to be able to accept only the next word of a GitHub Copilot suggestion, instead of the full suggestion. Is there a way to do this?
7
votes
5
answers
13k
views
How to save and close tabs with a keyboard shortcut?
I always find myself having at least 10 tabs open in VS Code. I easily get lost in all my tabs and I feel it kills productivity.
Is there a fast key binding to save and close a tab?
2
votes
1
answer
104
views
Did Xcode 26 remove the ⇧⌘↩ + hjkl layout shortcut after “Open Quickly”?
Before Xcode 26, I used to be able to:
Press ⇧⌘O to “Open Quickly” and search for a file.
Then hit ⇧⌘↩ (Shift–Command–Return) to open the layout menu.
Use hjkl (vim-style directions) to place the ...
1
vote
1
answer
88
views
What to use instead of KeyboardEvent.keyCode for keyboard shortcuts across different layouts?
I have an application that relies on the deprecated keyCode property for keyboard shortcuts. I need to update my code to use a modern alternative that works consistently regardless of the user's ...
72
votes
2
answers
37k
views
Are VS code keybindings available for IntelliJ Idea/Webstorm?
I'm used to VS code shortcuts, is there anything way I can import vscode shortcuts for IntelliJ Idea.
1
vote
4
answers
7k
views
How to simultaneously select multiple fields to generate a constructor in Intellij IDEA
When I want to generate a constructor, I can only choose one field at the same time. I searched online for keys for multiple selection and somebody answered that it's Ctrl & Shift. But when I ...
2
votes
2
answers
223
views
How do I move the pointer between laptop screen and external monitor? [closed]
I recently began using an external monitor, along with my macbook screen, to hold multiple windows.
I am looking for a way to move the pointer between each display. I want to use my mouse as little ...
2
votes
2
answers
2k
views
How to switch tabs in iTerm2 on a Mac using SHIFT-arrow keys, not CTRL-arrow keys
Pretty much what the title says...
My work flow in iTerm2 (just upgraded to 3.4.10 to see if that fixed the problem; no, it did not) let me hit Shift-Left Arrow to move to the previous tab and Shift-...
5
votes
3
answers
3k
views
Phantom Keytip conflict in Microsoft Office 2010 Ribbon Custom UI
I'm trying to create a custom ribbon in one of my Excel 2010 addins, and for some reason Office is overriding some of the keytips (keyboard accelerators). I know if Office sees a conflict it will ...
1
vote
0
answers
45
views
Is it possible to "openFilePreserveFocus" without preview mode on VS Code?
I am currently trying to adopt keyboard shortcuts for frequent tasks, where using
the mouse has become cumbersome.
When writting c and c++, I find myself setting up two tab groups and opening make, .h,...
82
votes
5
answers
72k
views
Key shortcut (hotkey) in Visual Studio to open a file inside your solution?
Is there a key shortcut in Visual Studio to find & open a file inside your solution without using Resharper or any other tools?
27
votes
3
answers
24k
views
Nano keyboard shortcut to go through line faster?
Is there an shortcut in nano for moving through a line faster? I have some log files with gigantic lines and getting to the middle of them is awful.
I know I could use a different text editor that ...
0
votes
1
answer
46
views
Overriding Browser's Keyboard Shortcuts 2
I would like to override browser's keyboard shortcuts.
I created an Angular Service that listen the 'keydown' event and manage it.
I tried to use stopPropagation(), preventDefault(), ...
1
vote
3
answers
4k
views
Collapse all methods in Cursor AI Editor
in other editor we can collapse method with keyboard shortcuts like we used to in VS Code. I want to know how to do that in Cursor AI Editor.
I get some reference from some podcast and other websites. ...
42
votes
11
answers
154k
views
Hotkey to open cmd with administration rights in current folder from Explorer
In Explorer sequence Shift+F10 -> open command window here opens cmd in current directory.
Is there any way to do the same via shortcuts to launch cmd with administration rights?
472
votes
15
answers
156k
views
Locate current file in IntelliJ
How do I locate the current file in the project structure? (Similar to Visual Studio's Ctrl + Alt + L). What is the name of the operation (so I can define it in the keymap)
1
vote
1
answer
78
views
How to open/close the bottom panel using shortcuts in Qt Creator?
I use Qt Creator 17.0.1.
I want to open and close the bottom panel (the one that shows Issues, Search Results, Application Output, etc.) using keyboard shortcuts:
Which shortcuts can do this?
10
votes
2
answers
9k
views
What does "U" stand for in Ctrl + U? [closed]
I was trying to understand and remember keyboard shortcuts for Bash. Why is the char 'U' used in the following?
CTRL-u --- cancel the line before cursor location
5
votes
1
answer
6k
views
Chrome extension error with 'onCommand'
I'm getting the error "Uncaught TypeError: Cannot read property 'onCommand' of undefined" while running a Chrome Extension with the following content:
manifest.json:
{
"name": "Test",
"...
1
vote
0
answers
42
views
How to bind Ctrl+Y to accept a menu item selection in Visual Studio 2022?
I’m trying to create a custom keybinding in Visual Studio 2022.
Specifically, I want to bind Ctrl+Y so that it works as an alternative to Tab/Enter for confirming a menu selection.
For example, when I ...
64
votes
3
answers
27k
views
Android Studio delete line and duplicate line shortcuts
What is the shortcut in Android Studio to delete a line? And what is the shortcut to duplicate a line?
I found the answer in the documentation and I am posting it below for quick reference.
22
votes
3
answers
18k
views
Ctrl + T to show class
With resharper we can click Ctrl+T
This brings up the class so you can click to view the class.
Is there a similar shortcut available/ built in visual studio 2012 (express)?
Note: I am talking ...
88
votes
26
answers
66k
views
Weird keyboard locks in IntelliJ IDEA (delete & arrow keys, etc.)
While working in IntelliJ IDEA, the keyboard occasionally locks in a way that delete or < > ^ keys don't work properly anymore, in a way that delete doesn't do anything anymore, and the arrow keys ...
1393
votes
19
answers
563k
views
How can I navigate back to the last cursor position in Visual Studio Code?
What is the keyboard shortcut to navigate back to the last cursor position in Visual Studio Code?
1166
votes
25
answers
819k
views
How do I duplicate a line or selection within Visual Studio Code?
Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Similar to Sublime's cmd+shift+d behaviour)
516
votes
14
answers
524k
views
Duplicate line in Visual Studio Code [duplicate]
I am trying to find the shortcut for duplicating a line in Visual Studio Code (I am using 1.3.1) I tried the obvious CTRL + D but that doesn't seem to work.
28
votes
5
answers
64k
views
How to zoom in and zoom out terminal console in linux [closed]
I am able to zoom in the Ubuntu Terminal by Pressing Ctrl - Shift and ++ . But I donot know how to zoom out the Ubuntu Terminal.
Is there any short-cuts available for doing so?
154
votes
10
answers
97k
views
Can GitHub Copilot stop auto-suggesting, instead be triggered by a keystroke?
I find Github Copilot very helpful in some specific situations, but fairly unhelpful in its verbosity in most situations.
By default, it's always on, always suggesting (and frequently getting in my ...
35
votes
4
answers
17k
views
I am looking how to Go Back in iOS Simulator
I am looking for the keyboard shortcut for Going Back (to last screen) using the iOS Simulator.
I have tried searching, I didn't find anything.
2
votes
2
answers
1k
views
How can I prevent the slash ("/") key from opening Firefox's "Quick Find" feature in my Flutter app?
Background
In my Flutter application, I am using the LogicalKeyboardKey.slash key as a shortcut for a division operation.
When deployed to the web, in Chrome this is not an issue and works fine. The ...
8
votes
4
answers
7k
views
Visual Studio Keyboard Shortcut / Hot key to Publish Current File
I'm aware of Build.PublishSelection as a shortcut to pull up the publish project window (and publish the entire project), but I would like to bind something to publish just the current file I'm ...
14
votes
4
answers
7k
views
VSCode: Select entire function definition?
Is there a way to select an entire function definition in VSCode?
That's a recurring action in my dev workflow, and I'd like to automate it instead of using my mouse. Couldn't find a shortcut for it. ...
4
votes
2
answers
2k
views
How can i generate a localized keyboard shortcut in C# / WPF?
I want to generate a localized keyboard shortcut for de-DE instead of writing it (STRG+Einfg) by hand.
var kg = new KeyGesture( Key.Insert, ModifierKeys.Control, "Strg+Einfg" );
Is there a ...
27
votes
2
answers
57k
views
What are the "OEM" keys in the System.Windows.Forms.Keys enumeration?
A friend was having trouble figuring out how to assign Ctrl + + as a shortcut key to a ToolStripMenuItem. I pointed out that the Keys.OemPlus key would work and the display string for the shortcut ...
1
vote
1
answer
2k
views
How to construct Qt::Key out of KeySym or KeyCode?
I have a low-level key logger that receives scan codes, without QKeyEvent's since the QApplication doesn't have focus. The scan codes can be converted into key syms using system specific library calls....
65
votes
9
answers
96k
views
How to disable keyboard shortcuts in Mac OS X? [closed]
I would like to disable keyboard shortcuts Command-W and Command-Q in Mac OS X 10.8 Mountain Lion.
This is because they interfere with emacs commands which I run from inside a terminal running from ...
152
votes
11
answers
139k
views
How to change font size in VS Code sidebar?
Querying for fontsize in User Settings window yields only settings for:
editor panes,
suggest widget,
markdown preview,
integrated terminal
As you can see below:
Doing the same for sidebar gives ...
245
votes
8
answers
100k
views
Copying the GNU screen scrollback buffer to a file (extended hardcopy)
How do I easily copy the GNU Screen scrollback buffer to a file? I.e., a more powerful version of the 'hardcopy' command?
In GNU screen, I can use "Ctrl + A Esc" to enter the scrollback
buffer. I ...
123
votes
6
answers
82k
views
How to reveal current file in Explorer?
When I have a file opened, I'd like to have a shortcut to navigate to this file inside the EXPLORER, so that I can see where it is located.
How can I do this?
80
votes
9
answers
36k
views
Use CTRL + D to exit and CTRL + L to cls in Powershell console
I am trying to make
CTRL + D - exit Powershell console
and
CTRL + L - clear the screen
like in bash.
So far, I have seen that we can define
function ^D {exit}
but that means I have to do CTRL+D ...
48
votes
6
answers
155k
views
Sending Windows key using SendKeys
I am working on shortcuts in C#. I succeed implementing Ctrl, Alt and Shift with SendKeys.
Like this;
Ctrl + C:
System.Windows.Forms.SendKeys.SendWait("^c");
or Alt + F4:
System.Windows.Forms....