Skip to content

Instantly share code, notes, and snippets.

@rstacruz
Last active March 2, 2020 03:30
Show Gist options
  • Save rstacruz/ce46b66ef0479367ad55f93a7a778069 to your computer and use it in GitHub Desktop.
Save rstacruz/ce46b66ef0479367ad55f93a7a778069 to your computer and use it in GitHub Desktop.
Rico's vscode config
// keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+w ctrl+w",
"command": "workbench.action.closeActiveEditor",
"when": "editorTextFocus"
},{
// <C-S-c> -- maximize terminal
"key": "ctrl+shift+c",
"command": "workbench.action.toggleMaximizedPanel",
"when": "terminalFocus"
},{
// <C-S-`> -- create new terminal
// <C-S-[> -- move to previous terminal
"key": "ctrl+shift+[",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},{
// <C-S-]> -- move to next terminal
"key": "ctrl+shift+]",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
}]
akamud.vscode-theme-onelight-2.1.0
alefragnani.project-manager-0.25.2
blanu.vscode-styled-jsx-0.2.2
christian-kohler.npm-intellisense-1.3.0
christian-kohler.path-intellisense-1.4.2
cometeer.spacemacs-1.1.1
dbaeumer.vscode-eslint-1.4.8
Equinusocio.vsc-material-theme-2.0.1
esbenp.prettier-vscode-1.3.1
fabiospampinato.vscode-todo-plus-1.10.7
faceair.ayu-one-dark-1.0.3
felipe-mendes.slack-theme-1.4.9
felipe-mendes.slack-theme-1.5.0
fkrull.gtk-dark-titlebar-1.1.0
flowtype.flow-for-vscode-0.8.1
formulahendry.auto-close-tag-0.5.6
formulahendry.terminal-0.0.10
harg.iceberg-1.0.0
hnw.vscode-auto-open-markdown-preview-0.0.4
JakeBecker.elixir-ls-0.2.19
lkytal.flatui-1.4.6
lkytal.flatui-1.4.7
lunaryorn.fish-ide-0.3.1
mjmcloug.vscode-elixir-1.1.0
naumovs.color-highlight-2.3.0
PeterJausovec.vscode-docker-0.0.26
ph-hawkins.arc-plus-1.0.1
philipbe.theme-gray-matter-1.4.2
ricard.postcss-2.0.0
sammkj.vscode-elixir-formatter-0.2.0
Shan.code-settings-sync-2.9.2
shinnn.stylelint-0.36.0
SolarLiner.linux-themes-1.0.1
TeddyDD.fish-0.0.4
tootone.org-mode-0.5.0
uloco.theme-bluloco-light-2.3.0
vscodevim.vim-0.11.5
yzhang.markdown-all-in-one-1.2.0
zhuangtongfa.material-theme-2.13.4
{
// Font
"editor.fontSize": 14,
"editor.lineHeight": 17,
"editor.fontFamily": "Iosevka, monospace",
"editor.mouseWheelScrollSensitivity": 0.25,
// Default tabsize to 2 (default 4)
"editor.tabSize": 2,
// Smartparens suck (default true)
// "editor.autoClosingBrackets": false,
// Enable ligatures for Iosevka, Fira Code, etc
"editor.fontLigatures": true,
// Ruler
"editor.hideCursorInOverviewRuler": false,
"editor.overviewRulerBorder": false,
// This makes sense for dvorak, and it enables Spacemac-like
// navigation
"vim.leader": ",",
"window.closeWhenEmpty": false,
// Don't move the window contents around when opening sidebar
"workbench.sideBar.location": "right",
// Make vscode the default $EDITOR
"terminal.integrated.env.linux": {
"EDITOR": "code",
"VISUAL": "code",
},
"terminal.integrated.env.osx": {
"EDITOR": "code",
"VISUAL": "code",
},
"terminal.integrated.env.windows": {
"EDITOR": "code",
"VISUAL": "code",
},
// No minimap
"editor.minimap.enabled": false,
// No indent guides
"editor.renderIndentGuides": false,
// Sparse line numbers
"editor.lineNumbers": "off",
// No overscrolling
"editor.scrollBeyondLastLine": false,
// Smoothly scroll with pressing `gg` or `G` (default false)
"editor.smoothScrolling": false,
// Simplify titlebar
// "window.title": "${dirty}${activeEditorShort}${separator}${rootName}${separator}${appName}",
"window.title": "${rootName}",
// Hide clutterbar
"workbench.activityBar.visible": false,
// Hide statusbar
"workbench.statusBar.visible": false,
// Press alt to toggle menu
"window.menuBarVisibility": "toggle",
// Colors
"workbench.colorTheme": "Abyss",
// Fix Dvorak, I hope
"keyboard.dispatch": "keyCode",
// Simplify tab bar
"workbench.editor.showIcons": false,
// Disable tabs for a more vim-like experience
"workbench.editor.showTabs": false,
// New in 1.22.2
"typescript.experimental.syntaxFolding": true,
// Use prettier-eslint when available
"prettier.eslintIntegration": true,
// Set the default
"editor.formatOnSave": false,
"[javascript]": {
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.formatOnSave": true
},
"[elixir]": {
"editor.formatOnSave": true
},
"[markdown]": {
// With Markdown All-in-One, this will auto-format tables.
"editor.formatOnSave": true
},
// No highlight ("all" or "none" works for me)
"editor.renderLineHighlight": "none",
"vim.hlsearch": true,
"vim.useSystemClipboard": false,
"vim.visualstar": true,
"vim.sneak": false, // messes up 's'
"gtkTitleBar.mode": "auto",
// Easymotion settings
"vim.easymotion": true,
"vim.easymotionKeys": "oeuidhtnspyfgcra",
"vim.easymotionMarkerFontFamily": "Iosevka, monospace",
"vim.easymotionMarkerFontWeight": "bold",
"vim.easymotionMarkerHeight": 24,
"vim.easymotionMarkerBackgroundColor": "#fe5",
"vim.easymotionMarkerForegroundColorOneChar": "#138",
"vim.easymotionMarkerForegroundColorTwoChar": "#aa8",
// Change cursor depending on Vim mode
"vim.cursorStylePerMode": {
"normal": "block",
"insert": "line-thin",
"replace": "block-outline"
},
// Use '-' when formatting unordered lists
"markdown.extension.toc.unorderedList.marker": "-",
// Control keys
// 'true' means interpret it like vim, and 'false' means interpret
// it like vscode
"vim.handleKeys": {
"<C-d>": true,
"<C-k>": false, // C-k v for markdown preview
"<C-b>": false, // Sidebar
"<C-x>": false, // decrement (disable)
"<C-a>": false, // increment (disable)
"<C-j>": false, // Show bottom panel
},
// Org mode
"org.todoKeywords": ["TODO", "DONE", "NEXT"],
// Auto-stage everything
"git.enableSmartCommit": true,
"vim.otherModesKeyBindings": [
{
// Easymotion jump to line
"before": ["leader", "j", "l"],
"after": ["leader", "leader", "j"]
},
{
// Easymotion jump to line
"before": ["leader", ".", "j"],
"after": ["leader", "leader", "j"]
},
{
// Easymotion jump to line above
"before": ["leader", ".", "k"],
"after": ["leader", "leader", "k"]
},
],
"vim.otherModesKeyBindingsNonRecursive": [
{
"before": ["j"],
"after": ["g", "j"]
},
{
"before": ["k"],
"after": ["g", "k"]
},
{
// SPC g s -- Magit
"before": ["leader", "g", "s"],
"after": [],
"commands": [
{
"command": "workbench.view.scm",
"args": []
}
]
},
{
// SPC ' -- Open shell
"before": ["leader", "'"],
"after":[],
"commands": [
{
"command": "terminal.toggle",
"args": []
}
]
},
{
// SPC p p -- Open project
"before": ["leader", "p", "p"],
"after": [],
"commands": [
{
"command": "workbench.action.openRecent",
"args": []
}
]
},
{
// Open explorer
"before": ["leader", "0"],
"after": [],
"commands": [
{
"command": "workbench.view.explorer",
"args": []
}
]
},
{
// Open explorer
"before": ["leader", ")"],
"after": [],
"commands": [
{
"command": "workbench.action.toggleSidebarVisibility",
"args": []
}
]
},
{
// SPC p f -- Open file
"before": ["leader", "p", "f"],
"after": [],
"commands": [
{
"command": "workbench.action.quickOpen",
"args": []
}
]
},
// {
// // SPC SPC -- command palette (M-x)
// "before": ["leader", "leader"],
// "after": [],
// "commands": [
// {
// "command": "workbench.action.showCommands",
// "args": []
// }
// ]
// },
{
// SPC p ' -- open terminal in project
"before": ["leader", "p", "'"],
"after": [],
"commands": [
{
"command": "terminal.open",
"args": []
}
]
},
],
"files.associations": {
"*.css": "postcss"
},
// Add Emmet support for PostCSS.
// See: https://marketplace.visualstudio.com/items?itemName=ricard.PostCSS
"emmet.includeLanguages": {
"postcss": "css",
"javascript": "javascriptreact"
},
"emmet.syntaxProfiles": {
// Enable it for CSS as well.
"postcss": "css",
"jsx": {
"attr_quotes": "single"
}
},
// Don't show "-- NORMAL --" in status bar.
"vim.showmodename": false,
// Don't show smiley face in status bar.
"workbench.statusBar.feedback.visible": false,
// Flow -- assume you have `flow-bin` installed per-project,
// which you really should have.
"flow.useNPMPackagedFlow": true,
// Todo -- Simplify symbols. This is the to do item symbol (☐)
"todo.symbols.box": "-",
// Todo -- Format used for displaying time inside @started
"todo.timekeeping.started.format": "YYYY-MM-DD",
// Todo -- Format used for displaying time inside @done/cancelled
"todo.timekeeping.finished.format": "YYYY-MM-DD",
// Don't show git changes on the left gutter.
"scm.diffDecorations": "overview",
// On startup, show the huge Vscode logo.
"workbench.startupEditor": "none",
// Etc
"window.zoomLevel": 0,
"explorer.confirmDelete": false,
"git.autofetch": true,
"workbench.iconTheme": "eq-material-theme-icons",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment