Steps to use provided settings.json
- press the “Ctrl + Shift + P” shortcut to access the Command Palette.
- Type “Settings.json” in the search bar and select the specific settings.json file
- Copy and paste the settings.json file into the user settings file
For user who would like to use my vscode settings, please follow the steps in this link to set up the keybindings.
The philosophy of my keybindings is to use the same intuition of keybindings as vim.
- To open a file/dir in terminal, use
code
command and file/dir following it - The vim extension is enabled by default, and
jj
is used instead ofEsc
since normal mode is the most used mode in vim - User could use
j/k
to move up/down in the file explorer instead of arrow keys Enter
to open the file in the current window andr
to rename the fileEnter
to toggle the folder when foucs on a folderCtrl + Enter
to open the file in a splited windowE
/R
is modified to goto next/previous tab like surfingkeys in normal mode- leader key is set to
Space
<Leader> cn/cp
to go to next/previous error suggested by the linter
Ctrl + h/l
to switch between splited windows/compared files, h for left, l for rightCtrl + f
to jump to the definition of the function, really useful for python
Cmd + P
to open a file of the current projectCmd + Shift + P
to open the vscode command paletteCmd + J
to toggle the terminal windowCmd + J
to the next sidebar view (when foucs on sidebar / quickopen)Cmd + K
to the previous sidebar view (when foucs on sidebar / quickopen)Cmd + H/L
to switch focus between text editor and file explorer sidebarCmd + H
to the previous panel view (when foucs on panel)Cmd + L
to the next panel view (when foucs on panel)Cmd + E
to toggle the file explorerCmd + Shift + F
to search text in the current project, and after pressingEnter
, you could usej
/k
to move up/down in the search result. PresEnter
again to open the file in the current window.
Ctrl+a cmd+v
to toggle Vim extensionCtrl+a t
to focus on the terminalCtrl+a c
to compare the current file with the selected fileCtrl+a p
to display markdown/latex preview in other groupsCtrl+a x
to close text editor in other groups, useful when you splited windows and close it. Could combine withCtrl+a p
to close the splited preview window
- press the “Ctrl + Shift + P” shortcut to access the Command Palette.
- Type “extensions” in the search bar and select the specific extensions.json file.
- Copy and paste the extensions.json file into the user settings file.
Save the extenstions to a file (vscode_ext.txt)
code --list-extensions > vscode_ext.txt
Install the extensions from the file
cat vscode_ext.txt | xargs -L 1 code --install-extension