Remove unnecessary note
This commit is contained in:
@@ -70,8 +70,6 @@ Some things to try:
|
|||||||
|
|
||||||
**Open browser automatically:** As an example change, let's update the `portsAttributes` in the `.devcontainer/devcontainer.json` file to open a browser when our port is automatically forwarded.
|
**Open browser automatically:** As an example change, let's update the `portsAttributes` in the `.devcontainer/devcontainer.json` file to open a browser when our port is automatically forwarded.
|
||||||
|
|
||||||
> **Note:** Remote-Containers and Codespaces also take care of dynamic port forwarding, but there may be instances in which we want to statically declare a forwarded port.
|
|
||||||
|
|
||||||
- Open the `.devcontainer/devcontainer.json` file.
|
- Open the `.devcontainer/devcontainer.json` file.
|
||||||
- Modify the `"onAutoForward"` attribute in your `portsAttributes` to `"openBrowser"`.
|
- Modify the `"onAutoForward"` attribute in your `portsAttributes` to `"openBrowser"`.
|
||||||
- Press <kbd>F1</kbd> and select the **Remote-Containers: Rebuild Container** or **Codespaces: Rebuild Container** command so the modifications are picked up.
|
- Press <kbd>F1</kbd> and select the **Remote-Containers: Rebuild Container** or **Codespaces: Rebuild Container** command so the modifications are picked up.
|
||||||
|
|||||||
Reference in New Issue
Block a user