-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: vscode 开发问题记录 | ||
--- | ||
|
||
# vscode 开发问题记录 | ||
|
||
## 调试时,可以禁用其他插件以提升速度 | ||
|
||
配置查看 | ||
|
||
```json | ||
{ | ||
"configurations": [ | ||
{ | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}", | ||
"--disable-extensions" // 禁用其他插件 | ||
], | ||
"runtimeExecutable": "${execPath}", | ||
"name": "启动扩展", | ||
"outFiles": [ | ||
"${workspaceFolder}/dist/**/*.js" | ||
], | ||
"request": "launch", | ||
"type": "extensionHost" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
## 作用域检查器 | ||
|
||
`vscode`自带的作用域检查器能帮你调试语法文件。它能显示当前位置符号作用域,以及应用在上面的主题规则和元信息。 | ||
|
||
在命令面板中输入`Developer: Inspect Editor Tokens and Scopes`或者使用快捷键启动作用域检查器。 | ||
|
||
![](https://code.visualstudio.com/assets/api/language-extensions/syntax-highlighting/scope-inspector.png) |