如何在Google Cloud Shell中运行Visual Studio代码

代码示例

0
0

如何在Google Cloud Shell中运行Visual Studio代码

# Install code-server
export VERSION=`curl -s https://api.github.com/repos/cdr/code-server/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'`
wget https://github.com/cdr/code-server/releases/download/$VERSION/code-server-$VERSION-linux-x86_64.tar.gz
tar -xvzf code-server-$VERSION-linux-x86_64.tar.gz
cd code-server-$VERSION-linux-x86_64

# Start the server
./code-server --auth none --port 8080

# Click on Web Preview -> Preview on port 8080

If you get a 404, remove ?authuser=0 from the url. So for example, just
https://8080-dot-YOURID-dot-devshell.appspot.com/
instead of
https://8080-dot-YOURID-dot-devshell.appspot.com/?authuser=0

类似页面

带有示例的类似页面

其他语言

此页面有其他语言版本

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................