vsCode

vsCode 相关

.vscode

launch.json,vue edgeDebug

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"version": "0.2.0",
"configurations": [
{
"type": "pwa-msedge",
"request": "launch",
"name": "edge",
"url": "http://localhost:8888",
"webRoot": "${workspaceFolder}/src",
"breakOnLoad": true,
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/*"
}
}
]
}

launch.json,react edgeDebug

1
2
3
4
5
6
7
8
9
10
11
12
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome",
"request": "launch",
"type": "pwa-chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}

umi

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
"version": "0.2.0",
"configurations": [
{
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"webpack:///./*": "${webRoot}/*",
"webpack:///src/*": "${webRoot}/*",
"webpack:///*": "*",
"src:///src/*": "${webRoot}/*"
}
}
]
}

setting.json 项目级配置

1
2
3
4
5
6
7
8
9
10
11
12
13
{
// 重新设定tabsize
"editor.tabSize": 2,
// 保存即格式化
"editor.formatOnSave": true,
// typescript版本使用项目依赖的版本
"typescript.tsdk": "node_modules/typescript/lib"
// eslint自动修复
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.organizeImports": true
},
}

sftp.json ftp 配置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"name": "名称",
"protocol": "sftp|ftp",
"port": 22,
"username": "用户名",
"host": "host",
"password": "",
"context": "dist/本地目录",
"ignore": [".vscode", ".git", ".DS_Store", "node_modules"],
"remotePath": "目标目录",
"privateKeyPath": "id_rsa",
// 多目录处理 SFTP:Set profiles
"profiles": {
"a": {
"name": "名称",
"protocol": "sftp|ftp",
"port": 22,
"username": "用户名",
"host": "host",
"context": "./dist",
"ignore": [".vscode", ".git", ".DS_Store", "node_modules"],
"remotePath": "目标目录"
},
"b": {
"remotePath": "目标目录"
}
}
}
打赏

请我喝杯咖啡吧~

支付宝
微信