
- Vscode shortcuts install#
- Vscode shortcuts code#
So one day jimmy thought of pressing ctrl + alt + del instead of right clicking the taskbar and then left click on task manager. Haha, I got you there, don’t worry, it’s nothing like that, there’s no compulsion of using keyboard over mouse, and no one’s going to judge you even if you use mouse (maybe), but still, it is always recommended to minimize the usage of mouse as much as possible, it saves a lot of time. Ok jokes apart, I was kidding, there is no Jimmy, everyone in the industry prefer using keyboard ( ͡ᵔ ͜ʖ ͡ᵔ ) The last step in this process is testing our changes in our workspace.Let me tell you a secret, if you call yourself a programmer, and you are still using your mouse for everything, you are going to be judged a lot ( ͡° ͜ʖ ͡°)
Vscode shortcuts code#
This is also the location where Code Web (code-server) expects to find any custom keyboard shortcuts. * /home/coder/.local/share/code-server/User/keybindings.json is the location where we’re copying to. * keybindings.json is the file we’re copying * -f (also -force) is the flag to force by overwriting the file if it already exists This says, “copy this file keybindings.json to this location and overwrite if the file already exists.” In your install.sh script, add this line: cp -f keybindings.json /home/coder/.local/share/code-server/User/keybindings.json
Vscode shortcuts install#
Now we need to modify our install script so that it uses our new keybindings.json and puts it in the right place after building our Workspace.
Copy everything in this file and save it to a file at the root of your dotfiles repo called keybindings.jsonĬommit this and push it up to the remote so we can use it in the next step. Command Palette > "Preferences: Open Keyboard Shortcuts (JSON)". To do this, follow these steps inside VS Code: The first thing you need to do is save your current keyboard shortcuts from VS Code. Save VS Code Keyboard Shortcuts to dotfiles Copy this code and paste it into install.shĬheck out the Coder docs to read more about the personalize and install scripts. Add a new file called install.sh at the root, make sure it’s executable. If you’re not familiar with dotfiles, it’s a repo where you get your workflow settings for things like your shell (zsh, bash, etc.), git, and other things. (the -f is for -force and overwrites the existing file when copying).įor those that want us to walk you through the whole process - start to finish - read on! Create a dotfiles repository and personalize script Note: this assumes you have a file called keybindings.json at the root of your workspace or dotfiles repo and you’re okay with overwriting the keybindings.json in your current workspace. To do this in Coder, all you have to do is add this line to your personalize or install script: cp -f keybindings.json /home/coder/.local/share/code-server/User/keybindings.json Moving your workspace to the cloud means you have to bring your VS Code keyboard shortcuts along with you! If you’re like me, you probably modified some of the defaults to your liking. One of the most important pieces of your development environment is your keyboard shortcuts.