1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Added variable and consistent use of Visual Studio Code and VS Code

This commit is contained in:
Sophie
2022-04-12 15:58:44 +02:00
parent c97c4010d3
commit 2a4185cd57
26 changed files with 88 additions and 84 deletions

View File

@@ -15,13 +15,13 @@ redirect_from:
- /codespaces/codespaces-reference/using-the-command-palette-in-codespaces
---
## About the {% data variables.product.prodname_vscode %} Command Palette
## About the {% data variables.product.prodname_vs_command_palette %}
The Command Palette is one of the focal features of {% data variables.product.prodname_vscode %} and is available for you to use in Codespaces. The {% data variables.product.prodname_vscode_command_palette %} allows you to access many commands for {% data variables.product.prodname_codespaces %} and {% data variables.product.prodname_vscode %}. For more information on using the {% data variables.product.prodname_vscode_command_palette %}, see "[User Interface](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette)" in the Visual Studio Code documentation.
The Command Palette is one of the focal features of {% data variables.product.prodname_vscode %} and is available for you to use in Codespaces. The {% data variables.product.prodname_vs_command_palette %} allows you to access many commands for {% data variables.product.prodname_codespaces %} and {% data variables.product.prodname_vscode_shortname %}. For more information on using the {% data variables.product.prodname_vs_command_palette_shortname %}, see "[User Interface](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette)" in the {% data variables.product.prodname_vscode_shortname %} documentation.
## Accessing the {% data variables.product.prodname_vscode_command_palette %}
## Accessing the {% data variables.product.prodname_vs_command_palette_shortname %}
You can access the {% data variables.product.prodname_vscode_command_palette %} in a number of ways.
You can access the {% data variables.product.prodname_vs_command_palette_shortname %} in a number of ways.
- <kbd>Shift</kbd>+<kbd>Command</kbd>+<kbd>P</kbd> (Mac) / <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux).
@@ -33,7 +33,7 @@ You can access the {% data variables.product.prodname_vscode_command_palette %}
## Commands for {% data variables.product.prodname_github_codespaces %}
To see all commands related to {% data variables.product.prodname_github_codespaces %}, [access the {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette), then start typing "Codespaces".
To see all commands related to {% data variables.product.prodname_github_codespaces %}, [access the {% data variables.product.prodname_vs_command_palette_shortname %}](#accessing-the-command-palette), then start typing "Codespaces".
![A list of all commands that relate to Codespaces](/assets/images/help/codespaces/codespaces-command-palette.png)
@@ -41,13 +41,13 @@ To see all commands related to {% data variables.product.prodname_github_codespa
If you add a new secret or change the machine type, you'll have to stop and restart the codespace for it to apply your changes.
To suspend or stop your codespace's container, [access the {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette), then start typing "stop". Select **Codespaces: Stop Current Codespace**.
To suspend or stop your codespace's container, [access the {% data variables.product.prodname_vs_command_palette_shortname %}](#accessing-the-command-palette), then start typing "stop". Select **Codespaces: Stop Current Codespace**.
![Command to stop a codespace](/assets/images/help/codespaces/codespaces-stop.png)
### Adding a dev container from a template
To add a dev container from a template, [access the {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette), then start typing "dev container". Select **Codespaces: Add Development Container Configuration Files...**
To add a dev container from a template, [access the {% data variables.product.prodname_vs_command_palette_shortname %}](#accessing-the-command-palette), then start typing "dev container". Select **Codespaces: Add Development Container Configuration Files...**
![Command to add a dev container](/assets/images/help/codespaces/add-prebuilt-container-command.png)
@@ -55,14 +55,14 @@ To add a dev container from a template, [access the {% data variables.product.pr
If you add a dev container or edit any of the configuration files (`devcontainer.json` and `Dockerfile`), you'll have to rebuild your codespace for it to apply your changes.
To rebuild your container, [access the {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette), then start typing "rebuild". Select **Codespaces: Rebuild Container**.
To rebuild your container, [access the {% data variables.product.prodname_vs_command_palette_shortname %}](#accessing-the-command-palette), then start typing "rebuild". Select **Codespaces: Rebuild Container**.
![Command to rebuild a codespace](/assets/images/help/codespaces/codespaces-rebuild.png)
### Codespaces logs
You can use the {% data variables.product.prodname_vscode_command_palette %} to access the codespace creation logs, or you can use it export all logs.
You can use the {% data variables.product.prodname_vs_command_palette_shortname %} to access the codespace creation logs, or you can use it export all logs.
To retrieve the logs for Codespaces, [access the {% data variables.product.prodname_vscode_command_palette %}](#accessing-the-command-palette), then start typing "log". Select **Codespaces: Export Logs** to export all logs related to Codespaces or select **Codespaces: View Creation Logs** to view logs related to the setup.
To retrieve the logs for Codespaces, [access the {% data variables.product.prodname_vs_command_palette_shortname %}](#accessing-the-command-palette), then start typing "log". Select **Codespaces: Export Logs** to export all logs related to Codespaces or select **Codespaces: View Creation Logs** to view logs related to the setup.
![Command to access logs](/assets/images/help/codespaces/codespaces-logs.png)