Work on a Project Locally
Complete the local setup for your operating system before following this page.
Choose a project location
Make a folder for your CS projects. Avoid spaces in folder names and avoid OneDrive, iCloud, Dropbox, or other synchronized folders. Synchronization programs can interfere with Git and build tools.
Set up the Code
Use one of these methods to get the project code on your computer.
A. Clone code from GitHub
For projects that began in Codespaces. Or if you want to be able to synchronize with a GitHub repository.
- Make a Github repository from the Chemeketa project template required by your assignment. (Or find your existing repository on GitHub.)
- In VSCode, open the Command Palette with
Ctrl+Shift+PorCmd+Shift+P. - Run Git: Clone.
- Select Clone from GitHub and authorize VS Code if prompted.
- Select the project repository.
- Choose your CS projects folder on your computer as the destination.
- Open the cloned project when VS Code prompts you.
B. Start a completely local project
If you just want to work on a project locally without using GitHub, download the prepared release described under Create a project without GitHub.
Open the whole project folder in VS Code (File > Open Folder).
.vscode folder).Build and run
Open Run and Debug, select the configuration for your platform and target, and start the program. See Compile and Run to build from the terminal.
Switch between development environments
A GitHub repository lets you work on the same project in Codespaces, directly on your computer, or in WSL. GitHub is the handoff point between those working copies.
Before leaving the current environment
- Save every file.
- Confirm that Worklog committed the latest changes.
- Open Source Control and select Sync Changes or Push.
- Open the repository on GitHub and confirm the latest commit appears.
- Close the project or stop the Codespace.
When entering the other environment
- If this is the first time using the project there, clone the repository.
- If it has already been cloned, pull or sync before editing anything.
- Resolve any reported conflict before continuing to work.
Downloading a ZIP is appropriate for submitting an assignment or making a snapshot. It is not the normal way to move an active project between development environments because the ZIP is disconnected from its GitHub repository.