1.首先在vscode中找到 .vscode并在settings.json中配置
{
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.detectIndentation": false,
"editor.tabSize": 2,
"search.followSymlinks": false,
"emmet.triggerExpansionOnTab": true,
"emmet.showSuggestionsAsSnippets": true,
"editor.snippetSuggestions": "top",
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"vue-html": "html",
"vue": "html",
"plaintext": "jade",
"wxml": "html"
},
"commentTranslate.targetLanguage": "zh-CN",
"gitlens.gitCommands.closeOnFocusOut": true,
"cssrem.rootFontSize": 75,
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"editor.quickSuggestions": {
"strings": true
},
"tailwindCSS.includeLanguages": {
"plaintext": "html"
},
"tailwindCSS.emmetCompletions": true,
"tailwindCSS.colorDecorators": "on",
"path-intellisense.mappings": {
"@": "${workspaceRoot}/src"
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"eslint.validate": [
"javascript",
"javascriptreact",
"vue",
"typescript"
],
"eslint.format.enable": true,
"eslint.alwaysShowStatus": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"workbench.editor.wrapTabs": true,
"html.format.enable": false
}
2.git配置
下载Git 官方地址为:https://git-scm.com/download/win
Git初始化及仓库创建和操作
1、Git安装之后需要进行一些基本信息设置
a、设置用户名:git config -- global user.name '你再github上注册的用户名';
b、设置用户邮箱:git config -- global user.email '注册时候的邮箱';
注意:该配置会在github主页上显示谁提交了该文件
c、配置ok之后,我们用如下命令来看看是否配置成功
git config --list
注意:git config --global 参数,有了这个参数表示你这台机器上所有的git仓库都会使用这个配置,当然你也可以对某个仓库指定不同的用户名和邮箱
更多的知识请看:Git 安装配置全流程_上岸鱼见到了码农的博客-CSDN博客_git配置
3.常用的包