Skip to content

Instantly share code, notes, and snippets.

@vansosnin
Last active October 10, 2018 16:19
Show Gist options
  • Save vansosnin/57d8a2f1984af8dccc948b8aceba6dd3 to your computer and use it in GitHub Desktop.
Save vansosnin/57d8a2f1984af8dccc948b8aceba6dd3 to your computer and use it in GitHub Desktop.
VSCode settings and stuff
ext install file-templates
ext install vscode-eslint
ext install intellij-idea-keybindings
ext install javascriptsnippets
ext install material-icon-theme
ext install material-theme
ext install nord-visual-studio-code
ext install prettier-vscode
ext install project-manager
ext install quokka-vscode
ext install activefileinstatusbar
ext install path-intellisense
ext install npm-intellisense
ext install auto-close-tag
ext install auto-rename-tag
ext install highlight-matching-tag
ext install debugger-for-chrome
ext install bracket-pair-colorizer
ext install vscode-todo-highlight
ext install vscode-import-cost
ext install ms-python.python
ext install bibhasdn.django-html
ext install editorconfig.editorconfig
{
"Import connect": {
"prefix": "imcon",
"body": ["import { connect } from 'react-redux';"],
"description": "Import connect"
},
"Connect component": {
"prefix": "conn",
"body": ["connect(${1:null}, ${2:null})(${TM_SELECTED_TEXT})"],
"description": "Wrap component into connect"
},
"Create action types": {
"prefix": "atyp",
"body": [
"export const ${TM_SELECTED_TEXT} = '${TM_SELECTED_TEXT}';",
"export const ${TM_SELECTED_TEXT}_BEGIN = '${TM_SELECTED_TEXT}_BEGIN';",
"export const ${TM_SELECTED_TEXT}_SUCCESS = '${TM_SELECTED_TEXT}_SUCCESS';",
"export const ${TM_SELECTED_TEXT}_ERROR = '${TM_SELECTED_TEXT}_ERROR';"
],
"description": "Create action types"
},
"Create action creators": {
"prefix": "acre",
"body": [
"export const ${TM_SELECTED_TEXT} = createAction(actionTypes.${1});",
"export const ${TM_SELECTED_TEXT}Begin = createAction(actionTypes.${2});",
"export const ${TM_SELECTED_TEXT}Success = createAction(actionTypes.${3});",
"export const ${TM_SELECTED_TEXT}Error = createAction(actionTypes.${4});"
],
"description": "Create action creators"
}
}
[
{
"key": "ctrl+k 1",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": { "langId": "javascript", "name": "Connect component" }
},
{
"key": "ctrl+k t",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": { "langId": "javascript", "name": "Create action types" }
},
{
"key": "ctrl+k c",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": { "langId": "javascript", "name": "Create action creators" }
},
{
"key": "alt+cmd+v",
"command": "python.refactorExtractVariable"
}
]
{
"editor.minimap.enabled": false,
"files.autoSave": "onFocusChange",
"editor.fontFamily": "'Fira Code'",
"editor.fontSize": 14,
"editor.fontLigatures": true,
"workbench.iconTheme": "material-icon-theme",
"telemetry.enableTelemetry": false,
"editor.formatOnSave": true,
"editor.tabCompletion": true,
"prettier.tabWidth": 4,
"prettier.singleQuote": true,
"prettier.trailingComma": "es5",
"prettier.arrowParens": "always",
"git.enableSmartCommit": true,
"javascript.validate.enable": false,
"workbench.colorTheme": "Nord",
"python.pythonPath": "python3",
"python.linting.pylintArgs": [
"--load-plugins=pylint_django"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment