Skip to content

Instantly share code, notes, and snippets.

@tkazusa
Created April 4, 2021 14:50
Show Gist options
  • Save tkazusa/8ffa0f2f6eaaa815a1a9047bb5584047 to your computer and use it in GitHub Desktop.
Save tkazusa/8ffa0f2f6eaaa815a1a9047bb5584047 to your computer and use it in GitHub Desktop.
{
"workbench.startupEditor": "newUntitledFile",
"workbench.sideBar.location": "left",
"editor.minimap.showSlider": "always",
"editor.minimap.renderCharacters": false,
"files.autoGuessEncoding": true,
"vim.useSystemClipboard": true,
//For vim
//Set s as leader
"vim.leader": "s",
"vim.normalModeKeyBindings": [
{"before": ["<Leader>", "s"],"commands": [":split"]},
{"before": ["<Leader>", "v"],"commands": [":vsplit"]},
{"before": [">"],"commands" : ["editor.action.indentLines"]},
{"before": ["<"],"commands" : ["editor.action.outdentLines"]},
{"before": ["<Leader>", "u"],"after" : ["g","t"]},
{"before": ["<Leader>", "y"],"after" : ["g","T"]},
{"before": ["<Leader>", "h"],"commands": ["workbench.action.focusLeftGroup"]},
{"before": ["<Leader>", "j"],"commands": ["workbench.action.focusBelowGroup"]},
{"before": ["<Leader>", "k"],"commands": ["workbench.action.focusAboveGroup"]},
{"before": ["<Leader>", "l"],"commands": ["workbench.action.focusRightGroup"]},
{"before": ["<Leader>", "d"],"commands": ["workbench.action.closeActiveEditor"]},
{"svbefore": ["<Leader>", "b"],"commands": ["workbench.action.toggleSidebarVisibility"]},
{"before": ["<Leader>", "f"],"commands": ["workbench.action.focusSideBar"]},
],
"vim.insertModeKeyBindings":[
{"before": ["j","j"],"after": ["<Esc>"]},
{"before": [";",";"],"commands": ["editor.action.triggerSuggest"]},
{"before": ["v","L"],"after": ["$","h"]},
],
"vim.visualModeKeyBindingsNonRecursive": [
{"before": [">"],"commands": ["editor.action.indentLines"]},
{"before": ["<"],"commands": ["editor.action.outdentLines"]},
],
"remote.SSH.useLocalServer": false,
// Formatter/Linter
// flake8
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--ignore=W293, W504",
"--max-line-length=119",
],
// black
"python.formatting.provider": "black",
"python.formatting.blackPath": "/home/ubuntu/.local/bin/black",
"[python]": {
"editor.formatOnSave": true
},
// isort
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
// mypy
"python.linting.mypyEnabled": true,
// doc
"autoDocstring.docstringFormat": "google",
"remote.SSH.remotePlatform": {
"aws-dev": "linux"
},
// jupyter notebook
"workbench.editorAssociations": [
{
"viewType": "jupyter.notebook.ipynb",
"filenamePattern": "*.ipynb"
}
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment