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: packages/projects-docs/pages/faq.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ recommend using a [Devbox](/learn/devboxes/overview).
68
68
69
69
## Can I change the Node version used in a Devbox?
70
70
71
-
Yes, we have instructions [here](https://codesandbox.io/docs/learn/environment/vm#configuring-nodejs-version) that tell you how to change the Node version. All recent server sandboxes run in a Devbox.
71
+
Yes, we have instructions on the [VM configuration](https://codesandbox.io/docs/learn/environment/vm#configuring-nodejs-version) page that tell you how to change the Node version. All recent server sandboxes run in a Devbox.
72
72
73
73
## How can I change the editor's theme?
74
74
@@ -118,7 +118,7 @@ Yes, you can use multiple databases in the same project by running multiple Dock
118
118
119
119
### Can I use Docker Compose in CodeSandbox?
120
120
121
-
Yes, you can use Docker Compose in CodeSandbox to orchestrate multiple containers and define the relationships between them. However, you'll need to create a Docker Compose file and run the `docker-compose` command in the terminal to start the containers. We share more about this [here](https://codesandbox.io/docs/tutorial/getting-started-with-docker#4-create-docker-compose-file).
121
+
Yes, you can use Docker Compose in CodeSandbox to orchestrate multiple containers and define the relationships between them. However, you'll need to create a Docker Compose file and run the `docker-compose` command in the terminal to start the containers. We share more about this [in our Docker tutorial](https://codesandbox.io/docs/tutorial/getting-started-with-docker#4-create-docker-compose-file).
122
122
123
123
### Is it safe to use a database in CodeSandbox with Docker support?
124
124
@@ -268,9 +268,10 @@ The user will receive an email invitation and in-app notification asking them to
268
268
You can leave or delete a workspace from the "Overview" tab of your [Workspace Settings](https://codesandbox.io/t/overview), by clicking on "Leave workspace", or "Delete workspace", respectively.
269
269
270
270
There are some cases where leaving a workspace is not permitted.
271
-
1. You are the only workspace member with admin rights: Every workspace requires at least one admin member. Before you can leave the workspace, you must assign a new admin.
272
271
273
-
2. You are trying to leave the only workspace connected to your account: Every account must be associated with at least one workspace. If you want to leave the only workspace connected to your account, you may create a new workspace and then leave the workspace you want to be disassociated with. Alternatively, deleting your account will remove you from any workspaces that you are a member of.
272
+
1. You are the only workspace member with admin rights: Every workspace requires at least one admin member. Before you can leave the workspace, you must assign a new admin.
273
+
274
+
2. You are trying to leave the only workspace connected to your account: Every account must be associated with at least one workspace. If you want to leave the only workspace connected to your account, you may create a new workspace and then leave the workspace you want to be disassociated with. Alternatively, deleting your account will remove you from any workspaces that you are a member of.
274
275
275
276
## How can I change my account's email address?
276
277
@@ -343,8 +344,7 @@ If everything seems to be in order but you're still having issues with the payme
343
344
344
345
## Can I change my subscription?
345
346
346
-
Yes, you can upgrade or downgrade your plan at any time from the settings page.
347
-
347
+
Yes, you can upgrade or downgrade your plan at any time from the settings page.
Copy file name to clipboardExpand all lines: packages/projects-docs/pages/learn/ai/boxy.mdx
+22-12Lines changed: 22 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,61 +5,71 @@ description: Introduction to Boxy the AI-powered coding companion
5
5
6
6
import { Callout } from'nextra-theme-docs'
7
7
8
-
9
8
# Meet Boxy
10
9
11
-
Boxy is an experimental AI-powered chat tool that is built directly into your editor. Boxy is aware of your code and can answer questions and make suggestions that consider best practices and conventions that are specific to your project.
10
+
<Calloutemoji="⚠️">Boxy will be deprecated on July 31, 2024.</Callout>
11
+
12
+
Boxy is an experimental AI-powered chat tool that is built directly into your editor. Boxy is aware of your code and can answer questions and make suggestions that consider best practices and conventions that are specific to your project.
12
13
13
14

14
15
15
16
## Boxy in the Editor
16
-
If you have granted AI permissions in the workspace settings. You will notice the newest addition to your team sitting next to your avatar.
17
17
18
-

18
+
If you have granted AI permissions in the workspace settings. You will notice the newest addition to your team sitting next to your avatar.
19
+
20
+

19
21
20
22
The easiest way to work with Boxy is to select a piece of code and choose a saved prompt. When you select the code, you will see a toolbar hover above the top line of the selected code. From there, you can either open the DevTool to chat with Boxy or run a saved prompt.
21
23
22
24

23
25
24
-
25
26
-**Edit** shows prompts related to refactoring code.
26
27
-**Ask** shows prompts related to chat actions.
27
28
- The **AI icon** opens a chat DevTool.
28
29
29
30
### Command Palette
30
-
Saved prompts are listed in the command palette. You can access them from the toolbar using `⌘ + ⇧ + H`.
31
-
32
-
From here, you can search for or select a prompt from the list. Alternatively, you can type a custom prompt, which Boxy will quickly respond to.
33
-
31
+
32
+
Saved prompts are listed in the command palette. You can access them from the toolbar using `⌘ + ⇧ + H`.
33
+
34
+
From here, you can search for or select a prompt from the list. Alternatively, you can type a custom prompt, which Boxy will quickly respond to.
35
+
34
36
When you ask Boxy to perform an action like `Document Code` or `Improve Readability` and you have code selected in the editor, Boxy will make suggestions directly in the file.
35
37
36
38
If you ask Boxy to `Explain Code` or `Consider Security`, the chat DevTool will automatically open with Boxy's response.
37
-
38
39
39
40
## Boxy Chat
41
+
40
42
Open a chat DevTool to have a conversation with Boxy. You can open a chat in two different ways:
43
+
41
44
- select the AI icon in the toolbar.
42
45
- open a new DevTool and select `Chat with Boxy`.
43
46
44
-
You can have multiple chats open at the same time. If you need to change topics but don't want to lose your progress in your last conversation, simply select `+` in the input to create a new chat.
47
+
You can have multiple chats open at the same time. If you need to change topics but don't want to lose your progress in your last conversation, simply select `+` in the input to create a new chat.
45
48
46
49
Below are a few tips and tricks that can help you make the most of your interactions with Boxy.
47
50
48
51
## Tips and Tricks
52
+
49
53
### Tips
54
+
50
55
**Keep chatting**
51
56
Boxy remembers your previous conversations and takes them into account when providing responses. For example, if you have asked Boxy to include the file path for the suggested code repeatedly in the past, it will include it in future responses.
52
57
53
58
**Request response formats**
54
-
Do you prefer that Boxy always provides suggestions in insertable snippets? Or do you prefer to see the code situated within the full file? Ask Boxy to `"always respond with ___"` to receive suggestions in the way you like.
59
+
Do you prefer that Boxy always provides suggestions in insertable snippets? Or do you prefer to see the code situated within the full file? Ask Boxy to `"always respond with ___"` to receive suggestions in the way you like.
55
60
56
61
**When in doubt, provide more context**
57
62
Boxy will give you what you ask for. They may make suggestions based on the way your frame your question. Boxy may have better responses when you ask them to consider specific files or libraries that may contain useful context for your question.
58
63
59
64
### Tricks
65
+
60
66
- use backticks for keywords or code segments
61
67
- use "again" to repeat your last prompt
62
68
63
69
## Commit suggestions
70
+
64
71
Say goodbye to nondescriptive or confusing commit messages. When you enable AI to work on repositories, Boxy will automatically generate commit messages based on the files changed in your branch. You can easily edit or remove these suggestions according to your preference.
65
72
73
+
## Boxy for Sandboxes
74
+
75
+
Boxy is available only on repositories and Devboxes. If you want the support of Boxy in your Sandbox, you can easily [convert your Sandbox](/tutorial/convert-browser-sandbox-cloud) using the options in the toolbar.
Copy file name to clipboardExpand all lines: packages/projects-docs/pages/learn/ai/faqs.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,4 +21,4 @@ Yes. Boxy is available in all plans.
21
21
22
22
No. Boxy is exclusively available in devboxes and repositories. However, you can easily [convert a Sandbox into a Devbox](/tutorial/convert-browser-sandbox-cloud) to get access to Boxy. This is available through the "Convert to Devbox" button at the top right of the Sandbox editor.
Copy file name to clipboardExpand all lines: packages/projects-docs/pages/learn/ai/getting-started.mdx
+3-9Lines changed: 3 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,13 @@ description: Instructions for getting started with AI
4
4
---
5
5
6
6
# Getting Started
7
-
All CodeSandbox AI tools are available for Pro users. To enable these features, admins need to grant permissions in the workspace settings.
8
-
9
-

10
7
8
+
All CodeSandbox AI tools are available to Free and Pro users. To enable these features, admins need to grant permissions in the [workspace settings](https://codesandbox.io/t/permissions).
11
9
10
+

12
11
13
12
Once you grant AI permissions, CodeSandbox will send information about the event to OpenAI for analysis. Under no circumstances will we send any event data to OpenAI without explicit instruction to do so. We will only share selected event data with OpenAI after you toggle on these permissions. OpenAI does not use the event data shared via this feature to train its AI models. To learn more about our privacy agreement with OpenAI, check out our [Privacy page](https://codesandbox.io/legal/privacy).
14
13
15
14
## Running AI
16
-
Once permissions have been granted, you need to restart the VMs for the changes to take effect. You can do this by selecting `Restart Branch` in the main menu. If you are in a Devbox, the option will read `Restart Sandbox`.
17
-
18
-
## Boxy for Sandboxes
19
-
Boxy is available only on repositories and Devboxes. If you want the support of Boxy in your Sandbox, you can easily [convert your sandbox](/tutorial/convert-browser-sandbox-cloud) using the options in the toolbar.
20
-
21
-
22
15
16
+
Once permissions have been granted, you need to restart the VMs for the changes to take effect. You can do this by selecting `Restart Branch` in the main menu. If you are in a Devbox, the option will read `Restart Sandbox`.
DevTools allow you to work faster and more efficiently. They are useful for debugging, testing, and developing. They are collaborative by default, allowing you to share their content: a terminal output, a preview error, a console log...
12
9
10
+
The CodeSandbox DevTools panel aggregates a series of tools that allow you to work faster and more efficiently. Among these tools, you will find Previews, Tasks and Shared Terminals.
13
11
14
-
<Videosrc="../../devtools-management.mp4" />
15
-
16
-
Add as many DevTools as you want. Each one lives in its own tab and each tab can be moved around, reordered or dropped into another tab to split the view.
17
-
18
-
When a tab is closed, the layout will re-arrange to fill up all the available space. Your layout is persisted in the browser, so you will see the same DevTools when you come back later to your VM.
19
-
20
-
<Calloutemoji="→">
21
-
Closing a DevTool will not stop it—it will keep running in the background. If you want to stop the process, you must select the option `Close and stop` from the dropdown menu `...`.
22
-
</Callout>
12
+

23
13
24
-
## Open a DevTool
14
+
## Previews
15
+
Any [previews](./preview) associated with your project, namely those spun up by tasks, will be accessible in a port listed under `Previews` in the DevTools tab. Each preview will show a tag next to it to identify its associated task, or show `Unconfigured` if no task is tied to it.
25
16
26
-
There are three main ways to open a new DevTool:
17
+
Clicking on a listed preview will open it on the right side of the editor.
27
18
28
-
1. Clicking on the `+` sign on the right side of any tabbed panel. This presents a list of available DevTools—and clicking on any DevTool will open it in the current tab.
29
-
2. Double-clicking anywhere between the tabs and the `+` button.
You can control the name and position of your DevTools, as well as define which DevTools run when you open the Web Editor. Check the [Tasks](./task) documentation for more information on how to configure the DevTools.
36
-
37
-
<Calloutemoji="⭑">
38
-
Setting up the DevTools makes it easier for non-developers to access and run your project.
19
+
<Calloutemoji="💡">
20
+
You can also see the list of ports in the terminal panel under the `Ports` tab at the bottom of the editor.
We are working on supporting other DevTools in the future, which may include:
25
+
[Tasks](./task) set in the `tasks.json` file will be listed in the DevTools tab. This lists all the configured tasks and allow you to run, stop or restart them. Any tasks that are running will display a `Running...` tag next to them.
50
26
51
-
- Test runner UI
52
-
- Viewing / editing [Design Tokens](https://css-tricks.com/what-are-design-tokens/) in a project
53
-
- Viewing components in isolation and changing their props from a UI
54
-
-[Postman](https://www.postman.com/) integration
55
-
- Bundle size analyzer
27
+
## Shared Terminals
28
+
Any active shared terminals will be listed under `Shared Terminals` in the DevTools tab. These are a specific type of [terminal](./terminal) that is managed by Pitcher, which means that other users with access to the project can see them.
56
29
57
-
If you would like to collaborate on building a DevTool, please select 'something else' on our [support form](https://codesandbox.io/support) and get in touch!
30
+
From this tab, you can also create new shared terminals, which will open in the Terminal tab at the bottom of the editor.
Copy file name to clipboardExpand all lines: packages/projects-docs/pages/learn/devboxes/embedding.mdx
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ website.
16
16
17
17
Embeds are now supported as a beta feature for Devboxes. There are a few distinctions between Sandbox and Devbox embeds worth noting. Devboxes have more computing power because they run in VMs. They also support any programming language, not just JavaScript. That said, Devbox embeds are currently limited in terms of interactions compared to Sandboxes, as explained further below.
18
18
19
-
### Embedding Devboxes
19
+
### Embedding Devboxes
20
20
21
21
Devbox embeds are a great solution if you want to show examples of applications that go beyond front-end JavaScript (namely, Python, Go, Rust and more).
22
22
@@ -32,11 +32,7 @@ You can generate a URL to embed by clicking the `Share` button inside the editor
32
32
33
33
This will give you HTML code with an iFrame that you can paste into your content.
MicroVM embeds are a feature of Devboxes. If you have an example from a repository you want to embed, you can import the repository as a [synced template](/learn/sandboxes/synced-templates), which allows you to access (and embed) the code as a Devbox.
39
-
</Callout>
35
+

40
36
41
37
## Example Embed
42
38
@@ -73,8 +69,9 @@ This code outputs the following embed:
73
69
></iframe>
74
70
75
71
## Limitations
72
+
76
73
As Devbox embeds are in beta, some more advanced options are currently unavailable.
77
74
78
-
Notably, the embed viewer cannot make changes to the sandbox before forking it, so inline editing is not currently supported on these embeds.
75
+
Notably, the embed viewer cannot make changes to the Devbox before forking it, so inline editing is not currently supported on these embeds.
79
76
80
-
Additionally, Devbox embeds still lack some of the customization options that are available in legacy sandbox embeds.
77
+
Additionally, Devbox embeds still lack some of the customization options that are available in Sandbox embeds.
0 commit comments