Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET)
Due to hardware limitation on login servers in GPU clusters ,forbidden to use VScode application on login servers (newton, lambda) so , for to develop and debug code you can use a tunnel option of this application in follow way :
1) download plugin to home directory :
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz
tar -xf vscode_cli.tar.gz
2) Open bash session with needed resources :
srun -A nlp -p nlp -c 10 --gres=gpu:2 --pty bash
3) Create secure tunnel :
./code tunnel
4)connect from yours PCs to received path (with browser)
To grant access to the server, please log into https://github.com/login/device and use code CAC8-BF5E
5) you receive a uncial address to connect by browser or application :
[2023-05-28 14:56:27] info Creating tunnel with the name: lambda5 Open this link in your browser https://vscode.dev/tunnel/lambda5
It’s all !!