You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/content/1.guide/1.features.md
+66-1
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,72 @@ Learn more about [Nitro Storage](https://nitro.unjs.io/guide/storage)
90
90
91
91
The VS Code Server integration in Nuxt DevTools enhances your development experience by bringing the power of Visual Studio Code directly into your browser. With this feature, you can seamlessly edit and debug your Nuxt projects using the familiar interface of VS Code.
92
92
93
-
To get started with VS Code Server, follow the installation instructions provided by [Code Server Installation Guide](https://coder.com/docs/code-server/latest/install)
93
+
Nuxt DevTools supports the following ways of integrating with VS Code:
94
+
95
+
### Connecting to an existing code-server instance
96
+
97
+
Set `reuseExistingServer` to true in runtime config for `devtools/vscode` and set the `port` option to specify a port (defalts to 3080):
98
+
99
+
```ts [nuxt.config.ts]
100
+
exportdefaultdefineNuxtConfig({
101
+
devtools: {
102
+
vscode: {
103
+
reuseExistingServer: true,
104
+
port: 3090
105
+
}
106
+
}
107
+
})
108
+
```
109
+
110
+
### Running a code-server instance locally
111
+
112
+
You can use either the [Microsoft Visual Studio Code Server](https://code.visualstudio.com/docs/remote/vscode-server) (via the `code` or `code-server` cli tools) or the [Coder VS Code Server](https://coder.com/docs/code-server/latest/install) (via the `code-server` cli tool) by setting the `codeServer` parameter under `devtools/vscode` in the runtime configuration.
113
+
114
+
Options for the codeServer parameter are:
115
+
|Type|Option|
116
+
|----|------|
117
+
|MS Code CLI|`ms-code-cli`|
118
+
|MS Code Server|`ms-code-server`|
119
+
|Coder Code Server|`coder-code-server`|
120
+
121
+
You can set the `port` parameter to listen on a specific port (default 3080) and you can set the `host` parameter if you need to listen on a particular host interface (useful for devcontainers or docker containers that listen on ipv6 by default).
122
+
123
+
**Example**:
124
+
125
+
```ts [nuxt.config.ts]
126
+
exportdefaultdefineNuxtConfig({
127
+
devtools: {
128
+
vscode: {
129
+
codeServer: 'ms-code-server',
130
+
host: '0.0.0.0',
131
+
port: 3090
132
+
}
133
+
}
134
+
})
135
+
```
136
+
137
+
### Remotely via a MS VS Code server tunnel
138
+
139
+
Set the `mode` option in `devtools/vscode` runtime configuration to `tunnel`. You can set the name of the tunnel to connect to using the `tunnel` option under `devtools/vscode/tunnel` in runtime configuration)
140
+
141
+
```ts [nuxt.config.ts]
142
+
exportdefaultdefineNuxtConfig({
143
+
devtools: {
144
+
vscode: {
145
+
mode: 'tunnel',
146
+
tunnel: {
147
+
name: 'my-tunnel-name'
148
+
}
149
+
}
150
+
}
151
+
})
152
+
```
153
+
154
+
### Code Server Installation Instructions
155
+
156
+
To get started with Microsoft VS Code Server, follow the installation instructions provided by [Microsoft Visual Studio Code Server](https://code.visualstudio.com/docs/remote/vscode-server)
157
+
158
+
To get started with Coder Code Server, follow the installation instructions provided by [Code Server Installation Guide](https://coder.com/docs/code-server/latest/install)
94
159
95
160
For more information on the benefits and features of VS Code Server, refer to [the official Visual Studio Code blog](https://code.visualstudio.com/blogs/2022/07/07/vscode-server)
0 commit comments