🌐
Visual Studio Code
code.visualstudio.com › shortcuts › keyboard-shortcuts-linux.pdf pdf
General Ctrl+Shift+P, F1 Show Command Palette Ctrl+P Quick Open, Go to File...
Keyboard shortcuts for Linux · * The Alt+Click gesture may not work on some Linux distributions. You can change the modifier key for the Insert cursor command to ·
🌐
DEV Community
dev.to › jmir17 › top-20-vs-code-shortcuts-linux-edition-bo9
TOP 20 VS Code shortcuts: Linux Edition - DEV Community
March 18, 2020 - Here is the list of TOP 25 shortcuts, with images: 1- Command Paletter: Ctrl+Shift+P ... Just as knowing the language and the paradigm you are working is a must, knowing the tools you are using in order to work effectively is also a important. It makes a difference. ... Software engineer as a profession, frustrated musician as a hobby, casual sportsman and social drinker in my free time. My personal blog: https://mirdevs.com ... We're a place where coders share, stay up-to-date and grow their careers.
Discussions

How to set windows Visual Studio Code to Linux Shortcuts
I think this is the solution I was looking for: https://stackoverflow.com/questions/52726849/how-to-transfer-vscode-key-mapping-on-windows-to-ubuntu More on reddit.com
🌐 r/vscode
4
19
June 15, 2021
macos - Changing VSCode keybindings on Ubuntu from linux-like to Mac-like - Stack Overflow
I am running on a Mac, and using VMWare Fusion to run Ubuntu, where I have VS Code installed. Naturally the default install on Ubuntu has linux-style shortcuts, in particular, control-c (copy), con... More on stackoverflow.com
🌐 stackoverflow.com
visual studio code - How to transfer VSCode key mapping on windows to ubuntu - Stack Overflow
I use vs-code as my go-to editor on Windows. Recently I've installed on Ubuntu and now the default key mapping is different. Is there any way I can set the key mapping on Ubuntu similar to what they More on stackoverflow.com
🌐 stackoverflow.com
Besides fast keyboard shortcuts, what's the fundamental advantage of Vim?
Vim is a language: https://danielmiessler.com/blog/your-problem-with-vim-is-that-you-dont-grok-vi/ More on reddit.com
🌐 r/vim
83
72
January 29, 2019
🌐
Visual Studio Code
code.visualstudio.com › docs › configure › keybindings
Keyboard shortcuts for Visual Studio Code
November 3, 2021 - VS Code keeps track of the keyboard shortcuts you have customized in the keybindings.json file. For advanced customization, you can also directly modify the keybindings.json file. ... Open Keyboard Shortcuts editor, and then select the Open Keyboard Shortcuts (JSON) button on the right of the editor title bar. Alternatively, use the Open Default Keyboard Shortcuts (JSON) command in the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)).
🌐
Visual Studio Code
code.visualstudio.com › docs › getstarted › tips-and-tricks
Visual Studio Code tips and tricks
November 3, 2021 - Try out VS Code's code editing features, like multi-cursor editing, IntelliSense, Snippets, Emmet, and more. Open the Welcome page from the Help > Editor Playground menu or use the Help: Interactive Editor Playground command from the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)). Access all available commands based on your current context. Keyboard Shortcut: ⇧⌘P (Windows, Linux Ctrl+Shift+P)
🌐
It's FOSS
itsfoss.com › vs-code-shortcuts
15 Best VS Code Keyboard Shortcuts to Increase Productivity
April 28, 2025 - If you want to have complete knowledge of VS Code keyboard shortcuts, you can check out the documentation of Visual Studio Code. Or, if you want all available shortcuts in a single piece of paper, get the above cheat sheet for Linux, macOS, and Windows.
🌐
Arunkumar Blog
arungudelli.com › home › microsoft › visual studio code keyboard shortcut cheat sheet (windows,mac & linux)
Visual Studio Code Keyboard Shortcut Cheat Sheet (Windows,Mac & Linux)
October 30, 2019 - You can press Ctrl+Shift+P or F1 (windows and Linux users) and ⇧⌘P or F1 (Mac users) to open the command Palette and search for required keyboard shortcuts. And also we can add our own keyboard bindings, at the end of this post I will explain ...
🌐
SitePoint
sitepoint.com › blog › programming › 45 visual studio code shortcuts for boosting your productivity
45 VS Code Shortcuts for Boosting Your Productivity — SitePoint
November 15, 2024 - Command Palette: Access the command palette with Ctrl + Shift + P (Windows/Linux) or Command + Shift + P (macOS) for quick command execution. Go to Definition: Jump to definitions of variables, functions, and classes with F12, enhancing code ...
🌐
Crio
crio.do › blog › vs-code-shortcuts
25 Most Used VS Code Shortcuts And More + Cheat Sheet
April 7, 2022 - ... Shrink / Expand the current selection through blocks of code. Useful when you need to quickly and precisely select text within a particular code block. Windows / Linux: shift+alt+left or shift+alt+right
Find elsewhere
🌐
Keychron
keychron.com › blogs › news › vscode-keyboard-shortcuts
VSCode Keyboard Shortcuts To Boost Your Coding Efficiency – Keychron
February 11, 2025 - Here are some key shortcuts: ... To open a new file in Linux, use Ctrl + N. Save your work with Ctrl + S. Linux users can move lines up and down with Alt + Up Arrow and Alt + Down Arrow, just like in Windows.
Top answer
1 of 5
9

Full disclosure

I am the author of Kinto.

You might be able to lessen your work by simply swapping the keymap out before creating new bindings, however if you use the terminal any at all on Ubuntu, or any linux distro, that mac illusion will quickly fade. Also the Cmd + arrow keys won't behave the same unless you create a custom keymap for it.

If you want to create less work for yourself then I would recommend using Kinto. It will handle applying the proper (and native) keymap by listening to what app you're currently using. It does not intercept keys pressed like Autokey or other 3rd party rebinding/remapping tools.

Kinto also provides a custom keymap for normal mac Cmd + arrow key behavior & now Alt + arrow key behavior as well.

https://github.com/rbreaves/kinto

** Update 6/16/20 **

Kinto now uses xkeysnail, it is simpler and python based. Also works on a lower udev input level. Easier to configure as well because all settings belong in a single python based file. You can use kinto or xkeysnail to do what you want.

https://github.com/mooz/xkeysnail

** Old XKB method explained below **

https://medium.com/@benreaves/kinto-a-mac-inspired-keyboard-mapping-for-linux-58f731817c0

Here's a Gist as well, if you just want to see what is at the heart of it all, it will not alternate your keymap when needed though. The Gist also does not include custom xkb keymap files that setup macOS style cursors/word-wise manipulations that use Cmd and the arrow keys.

https://gist.github.com/rbreaves/f4cf8a991eaeea893999964f5e83eebb

Edit: Following the advice of another member I will also include the actual content of the gist, since I can't realistically include all the code and files that went into creating Kinto. This gist and Kinto are identical aside from Kinto's ability to dynamically change your keymap and apply more custom keymaps specific to macOS behavior.

# permanent apple keyboard keyswap
echo "options hid_apple swap_opt_cmd=1" | sudo tee -a /etc/modprobe.d/hid_apple.conf
update-initramfs -u -k all

# Temporary & instant apple keyboard keyswap
echo '1' | sudo tee -a /sys/module/hid_apple/parameters/swap_opt_cmd

# Windows and Mac keyboards - GUI (Physical Alt is Ctrl, Physical Super is Alt, Physical Ctrl is Super)
setxkbmap -option;setxkbmap -option altwin:ctrl_alt_win

# Windows and Mac keyboards - Terminal Apps (Physical Alt is Super, Physical Super is Alt, Physical Ctrl is Ctrl)
setxkbmap -option;setxkbmap -option altwin:swap_alt_win

#
# If you want a systemd service and bash script to help toggle between
# GUI and Terminal applications then look at project Kinto.
# https://github.com/rbreaves/kinto
#
# Note: The above may not work for Chromebooks running Linux, please look
# at project Kinto for that.
#
# If anyone would like to contribute to the project then please do!
#
2 of 5
8

I believe you can edit the keybindings.json file located in the .config/Code/User/ directory to override the default keyboard shortcuts. That would not require you to edit it one by one.

I'd first get the default keyboard shortcuts file open. To do that, open the VS Code command pallete by going to:

View -> Command Pallete... (or by pressing Ctrl + Shift + p)

This will open up a textbox where you can enter you command: Then type in something like Shortcuts File and it will list a matching option which should look like:

Open Keyboard Shortcuts File

Note that it's different from "Open Keyboard Shortcuts" which opens a UI to edit the shortcuts.

Once you select the above command, it should open up your keybindings in a split view, where the left hand pane will show you a read only default shortcuts file, and the right hand pane will show you the custom keyboard shortcut bindings. (which is empty by default). Should look like this:

Then copy everything from the left pane (default shortcuts) and paste it on the keybindings.json file (right hand pane).

Now you can do a search and replace which is faster than manually changing each shortcut.

Hope it helps!!

🌐
How to Use Linux
howtouselinux.com › home › complete visual studio code (vs code) keyboard shortcuts guide
Complete Visual Studio Code (VS Code) Keyboard Shortcuts Guide - howtouselinux
January 19, 2026 - To view all built-in shortcuts: Press Ctrl+K Ctrl+S (Win/Linux) or Cmd+K Cmd+S (macOS) to open the Keyboard Shortcuts panel (searchable and filterable). These shortcuts handle core editor tasks (file management, window control) and are used ...
Top answer
1 of 5
77

I have created an extension that provides the default Windows keybindings. It is on the VSCode extension marketplace and called Windows Default Keybindngs.

I have tested it on Linux with VSCode 1.38.0 and 1.36.1.

The new bindings take precedence where there is a conflict, but existing, non-conflicting bindings are still available.

Basically all I did was use HolyBlackCat's suggestion to run "Preferences: Open Default Keyboard Shortcuts (JSON)" and stuff the result into the appropriate place in package.json. (Plus document it and figure out how to publish it!)

Update 2020-06-05: In response to a question in a comment, I did a search and found LinuxKeybindings, an extension that provides the default Linux bindings. I have not tried it myself but this could be useful for those wanting the Linux bindings instead of Windows bindings.

2 of 5
20

A quick way to transfer the default keymap without an extension:

VS Code Windows (source)

  • open "Show All Commands" / Ctrl+Shift+P
  • select Open Default Keyboard Shortcuts (JSON) (docs)

    Note: @Ville Venäläinen's answer did not work for me for default key bindings.

  • copy everthing to clipboard or a temporary file (like you need it)

VS Code Linux (target)

  • open user keybindings / CTRL + K CTRL + S → click Open Keyboard Shortcuts (JSON) button

  • paste all previously copied settings to this file. If you already have custom user settings, make sure to don't overwrite them. Also preserve the file JSON structure [{}, {}, ...].


Additional notes

You can make a backup of the keymaps before. Default file locations analogue to settings.json:

Linux: $HOME/.config/Code/User/keybindings.json
Windows: %APPDATA%\Code\User\keybindings.json

If needed, also copy custom user keyboard shortcuts in source and append them in the target keybindings.json file (as explained above).

This worked well for me with a Debian target distro. If you should happen to get a key conflict, just delete or change the relevant key binding for this case.

🌐
HackerNoon
hackernoon.com › how-to-learn-all-vscode-shortcuts-on-mac-linux-and-windows-je1t3wyn
How to Learn All VSCode Shortcuts on Mac, Linux and Windows | HackerNoon
June 5, 2020 - programming#visual-studio-code#productivity#software-development#programming#coding#vscode#ide#optimization#web-monetization
🌐
DEV Community
dev.to › lampewebdev › the-guide-to-visual-studio-code-shortcuts-higher-productivity-and-30-of-my-favourite-shortcuts-you-need-to-learn-mb3
VS Code Shortcuts: 💻The guide to Visual Studio Code shortcuts, higher productivity and 30 of my favourite shortcuts you need to learn - DEV Community
August 8, 2019 - How do you do it in VS Code? Super useful when you need to enter the same text into multiple lines at once, possibly with an overwrite. ... Software Engineer with a focus in server side layers (API’s, Containers, Databases) and mobile platforms. ... shift+alt + select with mouse will give you a rectangular selection / column selection... also, middle mouse click does it. Unfortunately works for mac only (at least for me), on Linux there seem to be some conflict with window movements, I have not tried it on Windows and I'd like to know.
🌐
WeAreDevelopers
wearedevelopers.com › en › magazine › 200 › vs-code-shortcuts
15 Great VS Code Keyboard Shortcuts
Visual Studio Code is a leading code editor that has been widely adopted by software developers worldwide. Developed by Microsoft, this IDE supports cross-platform coding on Linux, Mac, and Windows, making it an excellent choice for modern-day developers. However, with so many features and options, it can be challenging to keep up with all the latest tricks and techniques to use the editor efficiently. In this regard, we have compiled a list of six keyboard shortcuts ...
🌐
DEV Community
dev.to › thecodeliner › top-visual-studio-code-shortcuts-to-boost-your-productivity-4k32
Top Visual Studio Code Shortcuts to Boost Your Productivity - DEV Community
June 25, 2025 - Open the Keyboard Shortcuts panel: Ctrl + K, Ctrl + S (Windows/Linux) or Cmd + K, Cmd + S (Mac). Search for commands or modify keybindings by clicking the pencil icon next to a shortcut.
🌐
Medium
medium.com › @nebiyuelias1 › my-top-10-vs-code-shortcuts-for-productivity-9e474b3219b1
My Top 10 VS Code Shortcuts for Productivity | by Nebiyu Elias | Medium
November 17, 2023 - Say, for example, from line 900 to 500. After looking at the code, you often want to return to your previous position. Instead of wasting time scrolling the file with your mouse, use this shortcut instead. macOS: ⌃- Linux: Ctrl + Alt + - Windows: Alt+ ← ·
🌐
Medium
ervinismu.medium.com › today-im-back-to-linux-and-some-vscode-keyboard-shortcut-not-working-646a7de3f4a3
Today, I’m back to Linux and some VSCode keyboard shortcut not working | by ervinismu | Medium
June 9, 2023 - You can use Ctrl + Shift + p for open search bar and type shortcut, click Preferences: Open Keyboard Shortcuts (JSON) for add new custom keyboard shortcut.
🌐
GeeksforGeeks
geeksforgeeks.org › gblog › visual-studio-code-shortcuts-for-windows-and-mac
Visual Studio Code Shortcuts For Windows and Mac - GeeksforGeeks
July 23, 2025 - Out of all, now we will take a ... the mouse so that while coding it improves our productivity and speed. Windows/Linux: Ctrl + Shift + K Mac: Cmd + Shift + K...