注釈: Codespaces は現在限定パブリックベータであり、変更されることがあります。 ベータ期間中、 GitHub は Codespaces の可用性について一切の保証を行いません。 ベータへの参加に関する詳しい情報については「Codespacesについて」を参照してください。
codespaceをオープンした後は、テキスト編集、デバッギング、GitコマンドといったVisual Studio Codeの機能を使って開発を行えます。 詳しい情報についてはVisual Studio Codeのドキュメンテーションを参照してください。
Codespacesでの最善の体験のためには、Google ChromeあるいはMicrosoft EdgeのようなChromiumベースのブラウザを使うことをおすすめします。 詳しい情報については、「codespace のトラブルシューティング」を参照してください。
Connecting to a codespace from Visual Studio Code
Visual Studio Codeから直接codespaceに接続できます。 詳しい情報については「Visual Studio Codeからのcodespaceへの接続」を参照してください。
Navigating to your codespace
- 任意のページの上部でCodespacesをクリックしてください。

- 開発する codespace の名前をクリックします。

Forwarding ports
Port forwarding gives you access to TCP ports running within your codespace. For example, if you're running a web application on port 3000, you can access the application from your browser to test and debug it.
When an application running inside a codespace outputs a port to the console, Codespaces detects the localhost URL pattern and automatically forwards those ports. You can click on the URL in the terminal to open it in a browser. For example, if an application outputs http://127.0.0.1:3000 or http://localhost:3000 to the console, the log would automatically convert the output to a clickable URL for port 3000.

Alternatively, you can also use any of the following ways to forward a port.
-
You can forward a port on demand by triggering the command palette (
shift command P/shift control P) and typing "Codespaces: Forward Port". You can then enter the number of the port you want to forward.
-
You can automatically configure forwarded ports in a
.devcontainer.jsonfile using theforwardPortsproperty. -
You can add or remove forwarded ports within the Remote Explorer extension. From the Remote Explorer you can copy and paste the URLs for forwarded ports, allowing you to access them through your browser.
