Skip to content

Instantly share code, notes, and snippets.

@chrisdothtml
Last active May 12, 2018 20:14
Show Gist options
  • Save chrisdothtml/cba9eecc24ae4f5908da862e3862d96f to your computer and use it in GitHub Desktop.
Save chrisdothtml/cba9eecc24ae4f5908da862e3862d96f to your computer and use it in GitHub Desktop.
VS Code config files
[
{
"key": "cmd+y",
"command": "redo",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": ""
},
{ // duplicate line
"key": "shift+cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{ // toggle block comment
"key": "shift+cmd+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{ // new cursor at end of each line
"key": "shift+cmd+l",
"command": "editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
}
]
/* Extensions:
- Atom One Dark Theme
- Auto Rename Tag
- Bracket Pair Colorizer
- JavaScript Standard Style
- open in browser
- TODO Highlight
*/
{
"bracketPairColorizer.consecutivePairColors": [
"()",
"[]",
"{}",
[],
"Red"
],
"bracketPairColorizer.scopeLineCSS": [
"borderStyle : solid",
"borderWidth : 1px",
"borderColor : {color}; opacity: 0.4"
],
"css.validate": false,
"editor.accessibilitySupport": "off",
"editor.colorDecorators": false,
"editor.cursorBlinking": "phase",
"editor.cursorStyle": "line-thin",
"editor.dragAndDrop": true,
"editor.emptySelectionClipboard": false,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 12,
"editor.hover": false,
"editor.lightbulb.enabled": false,
"editor.matchBrackets": false,
"editor.minimap.enabled": false,
"editor.multiCursorModifier": "ctrlCmd",
"editor.occurrencesHighlight": false,
"editor.parameterHints": false,
"editor.renderIndentGuides": true,
"editor.roundedSelection": false,
"editor.smoothScrolling": true,
"editor.tabSize": 2,
"editor.wordWrap": "on",
"emmet.excludeLanguages": [
"css",
"javascript",
"markdown",
"stylus"
],
"emmet.triggerExpansionOnTab": true,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.decorations.badges": false,
"explorer.openEditors.visible": 0,
"extensions.ignoreRecommendations": true,
"files.associations": {
"*.hcst": "html",
"*.scss.liquid": "scss",
"*.tag": "html"
},
"files.autoSave": "onFocusChange",
"files.defaultLanguage": "javascript",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"**/.vscode": true
},
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"git.enabled": false,
"html.format.indentInnerHtml": true,
"html.validate.scripts": false,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
"javascript.suggestionActions.enabled": false,
"search.useRipgrep": false,
"standard.run": "onSave",
"standard.usePackageJson": true,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"terminal.integrated.fontSize": 10,
"window.nativeTabs": true,
"window.newWindowDimensions": "maximized",
"window.titleBarStyle": "native",
"window.zoomLevel": 0,
"workbench.colorTheme": "Atom One Dark",
"workbench.iconTheme": "vs-seti",
"workbench.startupEditor": "newUntitledFile",
"workbench.statusBar.feedback.visible": false
}
{
/*
// 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.
*/
"Class": {
"prefix": "class",
"body": [
"class ${1:MyClass} {",
" constructor () {",
" ${2://}",
" }",
"}"
],
"description": "Creates a class"
},
"Function": {
"prefix": "function",
"body": [
"function ${1:name} (${2:arg}) {",
" ${3://}",
"}"
]
},
"Object keys": {
"prefix": "keys",
"body": [
"Object.keys($1)"
],
"description": "Object keys"
},
"Object assign": {
"prefix": "assign",
"body": [
"Object.assign($1)"
],
"description": "Object assign"
},
"Print to console": {
"prefix": "log",
"body": [
"console.log($1)"
],
"description": "Log output to console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment