Skip to content

Instantly share code, notes, and snippets.

@tanmdoan
Created March 24, 2020 16:40
Show Gist options
  • Save tanmdoan/9d446db64626a61e00d594f3bca31be4 to your computer and use it in GitHub Desktop.
Save tanmdoan/9d446db64626a61e00d594f3bca31be4 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-03-24T16:40:42.947Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "ae062c8a-c68e-4b92-9ecf-8f1d4288b05d",
"publisherId": "rebornix.ruby",
"publisherDisplayName": "rebornix"
},
"name": "ruby",
"publisher": "rebornix",
"version": "0.27.0"
},
{
"metadata": {
"id": "4e44877c-1c8d-4f9c-ba86-1372d0fbeeb1",
"publisherId": "dracula-theme.theme-dracula",
"publisherDisplayName": "dracula-theme"
},
"name": "theme-dracula",
"publisher": "dracula-theme",
"version": "2.21.0"
},
{
"metadata": {
"id": "d96e79c6-8b25-4be3-8545-0e0ecefcae03",
"publisherId": "vscodevim.vim",
"publisherDisplayName": "vscodevim"
},
"name": "vim",
"publisher": "vscodevim",
"version": "1.13.0"
},
{
"metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "vscode-icons-team.vscode-icons",
"publisherDisplayName": "vscode-icons-team"
},
"name": "vscode-icons",
"publisher": "vscode-icons-team",
"version": "10.0.0"
},
{
"metadata": {
"id": "708cfcd8-e0c6-49ca-9af6-b27a342d247b",
"publisherId": "wingrunr21.vscode-ruby",
"publisherDisplayName": "wingrunr21"
},
"name": "vscode-ruby",
"publisher": "wingrunr21",
"version": "0.27.0"
}
]
// Place your key bindings in this file to override the defaults
[
// GO to Home
{
"key": "home",
"command": "workbench.action.showWelcomePage"
},
// Pane navigation using Ctrl + <hjkl>
{
"key": "ctrl+h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl+l",
"command": "workbench.action.navigateRight"
},
{
"key": "ctrl+k",
"command": "workbench.action.navigateUp"
},
{
"key": "ctrl+j",
"command": "workbench.action.navigateDown"
},
// Open fuzzy finder with Ctrl + p
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen"
},
// new window
{
"key": "ctrl+a c",
"command": "workbench.action.newWindow"
},
// full screen
{
"key": "cmd+enter",
"command": "workbench.action.toggleFullScreen"
},
// toggle terminal
{
"key": "ctrl+a -",
"command": "workbench.action.terminal.toggleTerminal"
},
// split terminal vertically
{
"key": "ctrl+a shift+\\",
"command": "workbench.action.terminal.split"
},
// toggle fullscreen terminal
{
"key": "ctrl+a z",
"command": "workbench.action.toggleMaximizedPanel"
},
// switch windows
{ "key": "ctrl+w",
"command": "workbench.action.switchWindow",
"when": "terminalFocus"
},
// resizing terminal
{ "key": "ctrl+a shift+h",
"command": "workbench.action.terminal.resizePaneLeft",
"when": "terminalFocus"
},
{
"key": "ctrl+a shift+l",
"command": "workbench.action.terminal.resizePaneRight",
"when": "terminalFocus"
},
{
"key": "ctrl+a shift+k",
"command": "workbench.action.terminal.resizePaneUp",
"when": "terminalFocus"
},
{
"key": "ctrl+a shift+j",
"command": "workbench.action.terminal.resizePaneDown",
"when": "terminalFocus"
},
// move to previous terminal pane
{
"key": "ctrl+h",
"command": "workbench.action.terminal.focusPreviousPane",
"when": "terminalFocus"
},
// move to next terminal pane
{
"key": "ctrl+l",
"command": "workbench.action.terminal.focusNextPane",
"when": "terminalFocus"
},
// jump to beginning or ending of terminal line
{
"key": "ctrl+a a",
"command": "workbench.action.terminal.moveToLineStart"
},
{
"key": "ctrl+a e",
"command": "workbench.action.terminal.moveToLineEnd"
},
// ctrl+j/k for ctrlp/fuzzy finder navigation
{
"key": "ctrl+j",
"command": "workbench.action.quickOpenSelectNext",
"when": "inQuickOpen"
},
{
"key": "ctrl+k",
"command": "workbench.action.quickOpenSelectPrevious",
"when": "inQuickOpen"
},
// ctrl+j/k for choose suggestion
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
// cmd + enter, rename
{
"key": "cmd+enter",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus"
},
// enter, open
{
"key": "enter",
"command": "-renameFile",
"when": "explorerViewletVisible && filesExplorerFocus"
},
{
"key": "enter",
"command": "list.select",
"when": "listFocus && !inputFocus"
},
// cmd+number to change tabs
{
"key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1",
},
{
"key": "cmd+2",
"command": "workbench.action.openEditorAtIndex2",
},
{
"key": "cmd+3",
"command": "workbench.action.openEditorAtIndex3",
},
{
"key": "cmd+4",
"command": "workbench.action.openEditorAtIndex4",
},
]
{
"workbench.colorTheme": "Dracula",
"window.zoomLevel": 1,
"files.autoSave": "afterDelay",
"terminal.external.osxExec": "iTerm.app",
// - active suggestion in comments and string
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
// Vim extension
"vim.leader": ",",
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.normalModeKeyBindingsNonRecursive": [
// <leader, q> to close files
{
"before": [
"leader",
"q"
],
"commands": ["workbench.action.closeActiveEditor"]
},
// <leader, n> open "nerd (side) bar"
{
"before": [
"leader",
"n"
],
"commands": ["workbench.view.explorer"]
},
// <leader, N> to toggle "nerd (side) bar" (when in sidebar)
{
"before": [
"leader",
"N"
],
"commands": ["workbench.action.toggleSidebarVisibility"],
"when": "explorerViewLetVisible && filesExplorerFocus"
},
// <leader, a> to open ":ack!/search" like functionality
{
"before": [
"leader",
"a"
],
"commands": ["workbench.view.search"]
},
// <leader, A> to toggle ":ack!" like functionality
{
"before": [
"leader",
"A"
],
"commands": ["workbench.action.toggleSidebarVisibility"],
"when": "explorerViewLetVisible && filesExplorerFocus"
},
// <leader, delete> find under cursor
{
"before": [
"leader",
"backspace"
],
"commands": ["references-view.find"]
},
// <ctrl, w> switch windows
{
"before": [
"ctrl+w"
],
"commands": ["workbench.action.switchWindow"]
},
]
}
@tanmdoan
Copy link
Author

VS code setup

Instructions on how to get setup with VScode quickly using preset extensions and shortcuts

Download && Installation

  • Download vscode
  • Install settings sync or manually in the editor by clicking Tools and languages on the Home screen, and looking for Settings Sync
  • Hit (F1) Type > "Sync" in command palette in order to download settings
  • Take this gist id: 9d446db64626a61e00d594f3bca31be4 and download the settings or manually copy paste these setting files into
    their respective files. (settings.json (gist) -> settings.json (local)

PATH

You should be able to do:

$ code .

But in the event it's not working follow these easy steps to do it automatically in vscode or manually add into your .bash_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment