Skip to content

Commit

Permalink
feat: 添加vscode问题描述
Browse files Browse the repository at this point in the history
  • Loading branch information
winchesHe committed Jul 21, 2023
1 parent 0c8eeec commit 627ad7f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const PROBLEM_ITEMS = [
{ text: 'ReactNative 开发问题', link: '/problem/react-native' },
{ text: 'Github 问题记录', link: '/problem/github' },
{ text: 'Git 开发问题', link: '/problem/git' },
{ text: 'Vscode 开发问题', link: '/problem/vscode' },
]

const MAC = {
Expand Down
37 changes: 37 additions & 0 deletions docs/src/problem/vscode.md
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)

0 comments on commit 627ad7f

Please sign in to comment.