Skip to content

Instantly share code, notes, and snippets.

@Tehnix
Created November 9, 2017 09:20
Show Gist options
  • Save Tehnix/0bbf719ecab9887cd80e508e64bc06d0 to your computer and use it in GitHub Desktop.
Save Tehnix/0bbf719ecab9887cd80e508e64bc06d0 to your computer and use it in GitHub Desktop.
VS Code settings
{
// Common Configuration
"workbench.colorTheme": "Spacemacs",
"editor.fontFamily": "Hasklig, Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 11,
"workbench.sideBar.location": "right",
"editor.minimap.enabled": false,
"workbench.startupEditor": "none",
"editor.accessibilitySupport": "off",
"explorer.openEditors.visible": 0,
"editor.multiCursorModifier": "ctrlCmd",
"editor.wordWrap": "on",
"editor.wordWrapColumn": 80,
"editor.wrappingIndent": "indent",
"editor.cursorBlinking": "solid",
"atomKeymap.promptV3Features": true,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"workbench.colorCustomizations": {
"statusBar.background": "#EC6BAC",
"statusBar.noFolderBackground": "#EC6BAC",
"statusBar.debuggingBackground": "#EC6BAC"
},
"editor.scrollBeyondLastLine": false,
"editor.acceptSuggestionOnEnter": "off",
"workbench.activityBar.visible": false,
"files.insertFinalNewline": true,
"window.zoomLevel": 0,
// Miscellaneous Configuration
// Haskell Configuration
"languageServerHaskell.maxNumberOfProblems": 3,
"[haskell]": {
"editor.formatOnSave": true,
"editor.tabSize": 2
},
// Markdown Configuration
"markdown.preview.fontSize": 13,
"markdown.preview.scrollPreviewWithEditorSelection": false,
"markdown.preview.scrollEditorWithPreview": false,
"[markdown]": {
"editor.tabSize": 2,
"editor.formatOnSave": false
},
// Terminal Configuration
"terminal.integrated.cursorStyle": "underline",
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.fontSize": 11,
"terminal.integrated.env.osx": {
"INSIDE_VSCODE": "Yes"
},
"sendToTerminal.commands": [
{
"match": "_spec\\.rb$",
"cmd": "./bin/rspec ${relativeFile}"
},
{
"match": ".hs",
"cmd": ":load ${relativeFile}"
}
],
"sendToTerminal.focusCommands": [
{
"match": "_spec\\.rb$",
"cmd": "./bin/rspec ${relativeFile}:${line}"
},
{
"match": ".hs",
"cmd": ":reload"
}
],
// Vim Configuration
"vim.disableAnnoyingNeovimMessage": true,
"vim.enableNeovim": true,
"vim.overrideCopy": false,
"vim.cursorStylePerMode": {
"insert": "line",
"normal": "underline"
},
"vim.statusBarColorControl": true,
"vim.statusBarColors": {
"normal": "#5D4D7A",
"insert": "#3A8462",
"replace": "#C6341E",
"visual": "#EC6BAC",
"visualline": "#EC6BAC",
"visualblock": "#EC6BAC"
},
"vim.mouseSelectionGoesIntoVisualMode": false,
"vim.cmdLineInitialColon": true,
// Spacemacs-esque keybindings. Taken from https://github.com/VSpaceCode/VSpaceCode/blob/master/settings.json.
"vim.leader": " ",
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": [
"<ctrl>",
"h"
],
"after": [],
"commands": [
{
"command": "extension.dash.specific",
"args": []
}
]
}
],
"vim.otherModesKeyBindingsNonRecursive": [
{
"before": [
"<leader>",
"<space>"
],
"after": [],
"commands": [
{
"command": "workbench.action.showCommands",
"args": []
}
]
},
{
"before": [
"<leader>",
"<tab>"
],
"after": [],
"commands": [
{
// "command": "workbench.action.nextEditor",
"command": "workbench.action.openPreviousRecentlyUsedEditor",
"args": []
}
]
},
{
"before": [
"<leader>",
"1"
],
"after": [],
"commands": [
{
// "command": "workbench.action.openEditorAtIndex1",
"command": "workbench.action.focusFirstEditorGroup",
"args": []
}
]
},
{
"before": [
"<leader>",
"2"
],
"after": [],
"commands": [
{
// "command": "workbench.action.openEditorAtIndex2",
"command": "workbench.action.focusSecondEditorGroup",
"args": []
}
]
},
{
"before": [
"<leader>",
"3"
],
"after": [],
"commands": [
{
// "command": "workbench.action.openEditorAtIndex3",
"command": "workbench.action.focusThirdEditorGroup",
"args": []
}
]
},
{
"before": [
"<leader>",
"b",
"b"
],
"after": [],
"commands": [
{
"command": "workbench.action.quickOpen",
"args": []
}
]
},
{
"before": [
"<leader>",
"b",
"d"
],
"after": [],
"commands": [
{
"command": "workbench.action.closeActiveEditor",
"args": []
}
]
},
{
"before": [
"<leader>",
"b",
"n"
],
"after": [],
"commands": [
{
"command": "workbench.action.nextEditor",
"args": []
}
]
},
{
"before": [
"<leader>",
"b",
"p"
],
"after": [],
"commands": [
{
"command": "workbench.action.previousEditor",
"args": []
}
]
},
{
"before": [
"<leader>",
"f",
"f"
],
"after": [],
"commands": [
{
"command": "workbench.action.files.openFile",
"args": []
}
]
},
{
"before": [
"<leader>",
"c",
"l"
],
"after": [],
"commands": [
{
"command": "editor.action.commentLine",
"args": []
}
]
},
{
"before": [
"<leader>",
"f",
"r"
],
"after": [],
"commands": [
{
"command": "workbench.action.openRecent",
"args": []
}
]
},
{
"before": [
"<leader>",
"f",
"s"
],
"after": [],
"commands": [
{
"command": "workbench.action.files.save",
"args": []
}
]
},
{
"before": [
"<leader>",
"f",
"t"
],
"after": [],
"commands": [
{
"command": "workbench.view.explorer",
"args": []
}
]
},
{
"before": [
"<leader>",
"g",
"s"
],
"after": [],
"commands": [
{
"command": "workbench.view.scm",
"args": []
}
]
},
{
"before": [
"<leader>",
"l",
"d"
],
"after": [],
"commands": [
{
"command": "workbench.action.closeFolder",
"args": []
}
]
},
{
"before": [
"<leader>",
"p",
"f"
],
"after": [],
"commands": [
{
"command": "workbench.action.quickOpen",
"args": []
}
]
},
{
"before": [
"<leader>",
"p",
"l"
],
"after": [],
"commands": [
{
"command": "workbench.action.files.openFolder",
"args": []
}
]
},
{
"before": [
"<leader>",
"p",
"p"
],
"after": [],
"commands": [
{
"command": "workbench.action.openRecent",
"args": []
}
]
},
{
"before": [
"<leader>",
"q",
"f"
],
"after": [],
"commands": [
{
"command": "workbench.action.closeWindow",
"args": []
}
]
},
{
"before": [
"<leader>",
"q",
"q"
],
"after": [],
"commands": [
{
"command": "workbench.action.closeWindow",
"args": []
}
]
},
{
"before": [
"<leader>",
"w",
"w"
],
"after": [],
"commands": [
{
"command": "workbench.action.focusNextGroup",
"args": []
}
]
},
{
"before": [
"<leader>",
"w",
"W"
],
"after": [],
"commands": [
{
"command": "workbench.action.focusPreviousGroup",
"args": []
}
]
},
{
"before": [
"<leader>",
"m",
"s",
"b"
],
"after": [],
"commands": [
{
"command": "sendToTerminal.run",
"args": []
}
]
},
{
"before": [
"<leader>",
"m",
"b"
],
"after": [],
"commands": [
{
"command": "sendToTerminal.run",
"args": []
}
]
},
{
"before": [
"<leader>",
"m",
"s"
],
"after": [],
"commands": [
{
"command": "sendToTerminal.runFocus",
"args": []
}
]
},
{
"before": [
"<leader>",
"'"
],
"after": [],
"commands": [
{
"command": "workbench.action.terminal.focus",
"args": []
}
]
},
{
"before": [
"u"
],
"after": [],
"commands": [
{
"command": "undo",
"args": []
}
]
},
{
"before": [
"U"
],
"after": [],
"commands": [
{
"command": "redo",
"args": []
}
]
}
// {
// "before": [
// "<leader>",
// "w",
// "1"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex1",
// "args": []
// }
// ]
// },
// {
// "before": [
// "<leader>",
// "w",
// "2"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex2",
// "args": []
// }
// ]
// },
// {
// "before": [
// "<leader>",
// "w",
// "3"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex3",
// "args": []
// }
// ]
// },
// {
// "before": [
// "<leader>",
// "w",
// "4"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex4",
// "args": []
// }
// ]
// },
// {
// "before": [
// "<leader>",
// "w",
// "5"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex5",
// "args": []
// }
// ]
// },
// {
// "before": [
// "<leader>",
// "w",
// "6"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex6",
// "args": []
// }
// ]
// },
// {
// "before": [
// "<leader>",
// "w",
// "7"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex7",
// "args": []
// }
// ]
// },
// {
// "before": [
// "<leader>",
// "w",
// "8"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex8",
// "args": []
// }
// ]
// },
// {
// "before": [
// "<leader>",
// "w",
// "9"
// ],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.openEditorAtIndex9",
// "args": []
// }
// ]
// }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment