Editing your files on Grail through VS Code

You can edit files that are on the CSU Linux computers directly through VS Code, instead of editing locally and then using scp each time you want to upload them.

Accessing SSH through VS Code

Open VS Code and click on the "Open a Remote Window" button on the bottom left: vscode connect to remote

Then select the "Connect to Host" option: vscode select ssh

Type in your CSU Linux ssh path username@spirit.eecs.csuohio.edu and hit enter. This will open a new window and you will be prompted to choose the operating system. Select Linux: vscode select linux

Enter your password: vscode ssh password

And you should be in! Next, select "Open Folder": vscode open folder

Your home directory should autopopulate. Click the OK button and enter your password again, and allow VS Code to trust the authors if prompted. You should now have access to all of your files on CSU's Linux computers, with some new files there for VS Code to work: vscode access to files

You can now edit any file by just selecting it through the file explorer on the left, and you can hit ctrl+~ to open the terminal, which will be the spirit terminal, on which you cann compile and run your programs using gcc as you make changes in the editor: vscode final