vscode 配置

161 阅读1分钟

Typeora

vue3

1 创建项目

vue create xxx

2 运行

npm run serve

vscode

设置中文

ctrl + alt + p display

chinese

页面浏览器打开

live Server

ESlint 语法检查

括号有色

Bracket Pair

文件图标

Material Icon

显示导入包大小

import cost

自动保存

设置

文件提示

Path Intellisense

vutur

Git

代码推送 Push

代码拉取 Pull

代码克隆 Clone

Gitee码云

image-20220506225653338

image-20220506231246473

初始化用户名和邮箱

image-20220506231740120

初始化本地库

git init

image-20220506232010878

image-20220506232032575

查看隐藏文件或者目录

ll -a

查看本地库状态

git status

将文件添加入暂存区

git add xxx

删除暂存区文件

git rm --cached xxx

提交本地库

git commit -m "message" xxx  -- 文件

查看版本信息

git reflog

查看版本详情详情

git log

选择之前的版本

git reset --hard 版本号

git分支

image-20220507111127392

image-20220507111544583

查看分支

git branch -v

创建分支

git branch xxx -- 分支名

修改分支

切换分支

git checkout xxx -- 分支名

合并分支

git merge xxx -- 分支名

合并冲突时

1  手动修改文件  选择需要留下的部分
2  git add xxx 文件名
3  git commit -m "message"  (不需要文件名)

远程仓库操作

创建远程库别名

git remote add xxx -- 别名 xxx  -- url
​
例如:
git remote add git-demo https://gitee.com/QingFengJIngJia/git-demo.git

查看远程库别名

git remote -v