remove all uses of include tool-switcher (part 1) (#24220)
* remove all uses of `include tool-switcher` * two more files
This commit is contained in:
@@ -67,8 +67,6 @@ If you would like to create a codespace for a repository owned by your personal
|
||||
|
||||
## Creating a codespace
|
||||
|
||||
{% include tool-switcher %}
|
||||
|
||||
{% webui %}
|
||||
|
||||
{% data reusables.repositories.navigate-to-repo %}
|
||||
|
||||
@@ -16,7 +16,7 @@ topics:
|
||||
shortTitle: Delete a codespace
|
||||
---
|
||||
|
||||
|
||||
|
||||
|
||||
{% data reusables.codespaces.concurrent-codespace-limit %}
|
||||
|
||||
@@ -26,8 +26,7 @@ shortTitle: Delete a codespace
|
||||
|
||||
{% endnote %}
|
||||
|
||||
{% include tool-switcher %}
|
||||
|
||||
|
||||
{% webui %}
|
||||
|
||||
1. Navigate to the "Your Codespaces" page at [github.com/codespaces](https://github.com/codespaces).
|
||||
@@ -37,13 +36,13 @@ shortTitle: Delete a codespace
|
||||

|
||||
|
||||
{% endwebui %}
|
||||
|
||||
|
||||
{% vscode %}
|
||||
|
||||
{% data reusables.codespaces.deleting-a-codespace-in-vscode %}
|
||||
|
||||
{% endvscode %}
|
||||
|
||||
|
||||
|
||||
{% cli %}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ shortTitle: Forward ports
|
||||
|
||||
## About forwarded ports
|
||||
|
||||
Port forwarding gives you access to TCP ports running within your codespace. For example, if you're running a web application on a particular port in your codespace, you can forward that port. This allows you to access the application from the browser on your local machine for testing and debugging.
|
||||
Port forwarding gives you access to TCP ports running within your codespace. For example, if you're running a web application on a particular port in your codespace, you can forward that port. This allows you to access the application from the browser on your local machine for testing and debugging.
|
||||
|
||||
When an application running inside a codespace prints output to the terminal that contains a localhost URL, such as `http://localhost:PORT` or `http://127.0.0.1:PORT`, the port is automatically forwarded. If you're using {% data variables.product.prodname_codespaces %} in the browser or in {% data variables.product.prodname_vscode %}, the URL string in the terminal is converted into a link that you can click to view the web page on your local machine. By default, {% data variables.product.prodname_codespaces %} forwards ports using HTTP.
|
||||
|
||||
@@ -29,8 +29,6 @@ You can also forward a port manually, label forwarded ports, share forwarded por
|
||||
|
||||
You can manually forward a port that wasn't forwarded automatically.
|
||||
|
||||
{% include tool-switcher %}
|
||||
|
||||
{% webui %}
|
||||
|
||||
{% data reusables.codespaces.navigate-to-ports-tab %}
|
||||
@@ -47,12 +45,12 @@ You can manually forward a port that wasn't forwarded automatically.
|
||||
By default, {% data variables.product.prodname_codespaces %} forwards ports using HTTP but you can update any port to use HTTPS, as needed.
|
||||
|
||||
{% data reusables.codespaces.navigate-to-ports-tab %}
|
||||
1. Right click the port you want to update, then hover over **Change Port Protocol**.
|
||||
1. Right click the port you want to update, then hover over **Change Port Protocol**.
|
||||

|
||||
1. Select the protocol needed for this port. The protocol that you select will be remembered for this port for the lifetime of the codespace.
|
||||
|
||||
{% endwebui %}
|
||||
|
||||
|
||||
{% vscode %}
|
||||
|
||||
{% data reusables.codespaces.navigate-to-ports-tab %}
|
||||
@@ -65,7 +63,7 @@ By default, {% data variables.product.prodname_codespaces %} forwards ports usin
|
||||

|
||||
|
||||
{% endvscode %}
|
||||
|
||||
|
||||
|
||||
{% cli %}
|
||||
|
||||
@@ -74,7 +72,7 @@ By default, {% data variables.product.prodname_codespaces %} forwards ports usin
|
||||
To forward a port use the `gh codespace ports forward` subcommand. Replace `codespace-port:local-port` with the remote and local ports that you want to connect. After entering the command choose from the list of codespaces that's displayed.
|
||||
|
||||
```shell
|
||||
gh codespace ports forward <em>codespace-port</em>:<em>local-port</em>
|
||||
gh codespace ports forward <em>codespace-port</em>:<em>local-port</em>
|
||||
```
|
||||
|
||||
For more information about this command, see [the {% data variables.product.prodname_cli %} manual](https://cli.github.com/manual/gh_codespace_ports_forward).
|
||||
@@ -93,8 +91,6 @@ To see details of forwarded ports enter `gh codespace ports` and then choose a c
|
||||
|
||||
If you want to share a forwarded port with others, you can either make the port private to your organization or make the port public. After you make a port private to your organization, anyone in the organization with the port's URL can view the running application. After you make a port public, anyone who knows the URL and port number can view the running application without needing to authenticate.
|
||||
|
||||
{% include tool-switcher %}
|
||||
|
||||
{% webui %}
|
||||
|
||||
{% data reusables.codespaces.navigate-to-ports-tab %}
|
||||
@@ -105,7 +101,7 @@ If you want to share a forwarded port with others, you can either make the port
|
||||
1. Send the copied URL to the person you want to share the port with.
|
||||
|
||||
{% endwebui %}
|
||||
|
||||
|
||||
{% vscode %}
|
||||
|
||||
{% data reusables.codespaces.navigate-to-ports-tab %}
|
||||
@@ -116,7 +112,7 @@ If you want to share a forwarded port with others, you can either make the port
|
||||
1. Send the copied URL to the person you want to share the port with.
|
||||
|
||||
{% endvscode %}
|
||||
|
||||
|
||||
{% cli %}
|
||||
|
||||
To change the visibility of a forwarded port, use the `gh codespace ports visibility` subcommand. {% data reusables.codespaces.port-visibility-settings %}
|
||||
@@ -124,7 +120,7 @@ To change the visibility of a forwarded port, use the `gh codespace ports visibi
|
||||
Replace `codespace-port` with the forwarded port number. Replace `setting` with `private`, `org`, or `public`. After entering the command choose from the list of codespaces that's displayed.
|
||||
|
||||
```shell
|
||||
gh codespace ports visibility <em>codespace-port</em>:<em>setting</em>
|
||||
gh codespace ports visibility <em>codespace-port</em>:<em>setting</em>
|
||||
```
|
||||
|
||||
You can set the visibility for multiple ports with one command. For example:
|
||||
|
||||
Reference in New Issue
Block a user