Skip to content

Commit 439200c

Browse files
authored
Merge pull request #255 from codesandbox/draft/hardcore-khorana
Web vs code beta docs
2 parents 72cb563 + 6512de1 commit 439200c

File tree

7 files changed

+60
-1
lines changed

7 files changed

+60
-1
lines changed

packages/projects-docs/pages/learn/editors/web/_meta.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"overview": "Overview",
33
"commandpalette": "Command Palette",
44
"shortcuts": "Keyboard Shortcuts",
5-
"themes": "Themes"
5+
"themes": "Themes",
6+
"vscode-web": "VS Code Web"
67
}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: VS Code Web
3+
description: Introduction to a customized version of VS Code for the web with built-in CodeSandbox features.
4+
---
5+
6+
import { Callout } from 'nextra-theme-docs'
7+
8+
# VS Code for the web
9+
10+
Productivity is key when working in an editor. For this reason, we have embedded our CodeSandbox features within the powerful and well loved VS Code.
11+
12+
The web editor looks and functions like VS Code for the web, with a few built-in CodeSandbox tools.
13+
14+
![vs code web layout](../../images/vscode-web-overview.png)
15+
16+
The activity bar holds all the tools for managing your developer experience. The web editor will always contain the standard VS Code tools, namely the File explorer, Search, Source Control, Run and Debug and the Extension marketplace.
17+
18+
The web editor also comes with a CodeSandbox Devtool extension which provides access to all the unique Code Sandbox features (more on that later).
19+
20+
In the Terminal panel, you can see all the running tasks, private terminals, and shared terminals (managed by CodeSandbox).
21+
22+
While the layout is entirely customizable, the standard layout opens previews, and support tools like documentation and setup tools in the right editor panel.
23+
24+
## Things to know when switching over
25+
26+
All CodeSandbox DevTools, such as previews, tasks, and shared terminals, are now nested under the “CodeSandbox DevTools” panel on the left sidebar. From there, you can manage all these DevTools when needed, but most of these actions will still be performed automatically, just like before. For example, if your project has a task configured that runs the dev server on VM startup, it will automatically open the preview for you when you open the project.
27+
28+
## Tasks, Terminals and Previews
29+
30+
Preview ports, Tasks and shared terminals are controlled through the devtool extension in the sidebar.
31+
32+
![CSB devtool](../../images/vscode-web-devtools.png)
33+
34+
**Tasks**
35+
36+
Tasks set in the `tasks.json` file will be listed in the Devtool extension. Here you can see all the tasks, run, stop or restart the tasks.
37+
38+
**Previews**
39+
40+
Tasks that spin up previews will be accessible in a port listed under `Previews`
41+
42+
You can also see the list of ports in the terminal panel under `Ports`
43+
44+
![Ports](../../images/vscode-web-ports.png)
45+
46+
**Terminals**
47+
48+
There are three types of terminals:
49+
50+
1. Native terminal: This is managed by VS Code when you open a terminal. It is a private terminal to you that others don’t see.
51+
52+
2. Tasks: These are run by Pitcher, an internal CodeSandbox service. The output of a task is streamed to a terminal window and displayed as a VS Code task so it is easily distinguishable from a terminal.
53+
54+
![Tasks](../../images/vscode-web-tasks.png)
55+
56+
3. Shared terminal: In the sidebar, you can open a shared terminal. This terminal is managed by Pitcher, allowing others to see it.
57+
58+
![shared terminals](../../images/vscode-web-shared-terminal.png)
Loading
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)