Skip to content

Commit 3539990

Browse files
authored
docs: configuration for WSL (#61)
1 parent dde195d commit 3539990

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ interface VitePluginInspectorOptions {
145145

146146
It uses an **environment variable** named **`VUE_EDITOR`** to specify an IDE application, but if you do not set this variable, it will try to open a common IDE that you have open or installed once it is certified.
147147

148-
For example, if you want it always open VSCode when inspection clicked, set `export VUE_EDITOR=code` in your shell.
148+
For example, if you want it always open VS Code when inspection clicked, set `export VUE_EDITOR=code` in your shell.
149149

150150

151-
### VSCode
151+
### VS Code
152152

153-
- install VSCode command line tools, [see the official docs](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line)
153+
- install VS Code command line tools, [see the official docs](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line)
154154
![install-vscode-cli](./public/install-vscode-cli.png)
155155

156156
- set env to shell, like `.bashrc` or `.zshrc`
@@ -161,6 +161,23 @@ For example, if you want it always open VSCode when inspection clicked, set `exp
161161

162162
<br />
163163

164+
### VS Code with WSL (Windows)
165+
166+
- add the configuration in the `settings.json`
167+
168+
- restart the VS Code (All Windows should be closed to take effect)
169+
170+
```json
171+
{
172+
// other config...
173+
174+
"terminal.integrated.env.linux": {
175+
"EDITOR": "code"
176+
}
177+
}
178+
```
179+
180+
164181
### WebStorm
165182

166183
- just set env with an absolute path to shell, like `.bashrc` or `.zshrc` (only MacOS)

0 commit comments

Comments
 (0)