Skip to content

Instantly share code, notes, and snippets.

@nathanforce
Last active December 27, 2019 15:29
Show Gist options
  • Save nathanforce/586e3d7c8dbd19adeffdd3902765d24a to your computer and use it in GitHub Desktop.
Save nathanforce/586e3d7c8dbd19adeffdd3902765d24a to your computer and use it in GitHub Desktop.
vscode
[alias]
co = checkout
br = branch
brl = branch --sort=-committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:green)%(committerdate:relative)%(color:reset) - %(authorname)'
st = status
cm = commit
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
[color "diff"]
plain = white dim
old = red bold
new = green bold
[color "diff-highlight"]
newNormal = green bold
oldNormal = red bold
[color]
ui = true
{
// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": ["console.log($1)", "$2"],
"description": "Log output to console"
}
}
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+l",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "console.log(${TM_SELECTED_TEXT}$1)$2;"
}
},
{
"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"
},
{
"key": "cmd+5",
"command": "workbench.action.openEditorAtIndex5"
},
{
"key": "cmd+6",
"command": "workbench.action.openEditorAtIndex6"
},
{
"key": "cmd+7",
"command": "workbench.action.openEditorAtIndex7"
},
{
"key": "cmd+8",
"command": "workbench.action.openEditorAtIndex8"
},
{
"key": "cmd+9",
"command": "workbench.action.openEditorAtIndex9"
}
]
{
"workbench.colorTheme": "Material Theme Palenight High Contrast",
"editor.formatOnSave": true,
"window.zoomLevel": 1,
"explorer.confirmDragAndDrop": false,
"editor.tabSize": 2,
"explorer.confirmDelete": false,
"workbench.iconTheme": "eq-material-theme-icons",
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"newFile.expandBraces": true,
"editor.gotoLocation.multiple": "goto",
"emmet.showExpandedAbbreviation": "never"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment