Skip to content

Instantly share code, notes, and snippets.

@wangpin34
Last active November 16, 2020 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wangpin34/4ed2533af0240a09cebd51339553488a to your computer and use it in GitHub Desktop.
Save wangpin34/4ed2533af0240a09cebd51339553488a to your computer and use it in GitHub Desktop.
vscode dev settings
// saved at root of repo, or global
registry = https://registry.npm.taobao.org
sass_binary_site = https://npm.taobao.org/mirrors/node-sass/
electron_mirror = https://npm.taobao.org/mirrors/electron/
// saved at root of repo
{
"printWidth": 140,
"tabWidth": 2,
"singleQuote": true,
"semi": false,
"jsxBracketSameLine": false,
"trailingComma": "es5",
"endOfLine": "lf",
}
#!/bin/sh
# Retrieve git branch, the last commit
export BRANCH=$(git branch | grep '*' | awk '{print $2}')
export COMMIT=${git rev-parse HEAD}
// saved at .vscode, or global
{
"sass.disableAutoIndent": true,
"files.autoSave": "onWindowChange",
"sass.format.convert": false,
"sass.format.enabled": false,
"scss.lint.important": "warning",
"scss.lint.idSelector": "warning",
"scss.lint.float": "warning",
"scss.lint.duplicateProperties": "warning",
"sass.format.debug": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment