Manage Projects
You can manage your projects in Trae, including creating and switching projects.
What is a Workspace?
A workspace is generally a folder opened in Trae. If your project is complex, you can add multiple folders to one workspace for management.
Create a Project
You can create a project in Trae by importing a local folder or cloning a Git repository.
Method 1: Import a Local Folder
- Click Open a Folder in the middle of the screen or click Select a Project > Open a Folder at the top left.
- Select a folder and open it in Trae.
- In the "Trae" would like to access files in your Downloads folder" dialog box, click Allow.
- In the Do you trust the authors of the files in this folder dialog box:
- (Optional) Check the Trust the authors of all files in the parent folder "Downloads" checkbox.
- Afterwards, this pop-up window will not appear again when you open any folder from the Downloads directory in Trae.
- Click Yes, I trust the authors.
- The selected folder is opened in Trae, and you can start editing it.
Method 2: Clone a Git Repository from GitHub
- Click Clone Git Repository in the middle of the screen or click Select a Project > Clone Git Repository at the top left.
- Click Clone from GitHub.
- The following dialog box appears.
- Authorize GitHub to log in to Trae:
- Click Allow.
- The following dialog box that displays the authorization code appears.
- Click Copy & Continue to GitHub.
- The authorization code is copied and the following dialog box appears.
- Click Open.
- You are directed to the following screen for device activation.
- Follow the on-screen instructions to complete the authorization process.
- Return to Trae.
- The box in the top middle of the screen displays a list of clonable repositories.
- Select a repository from the list. OR Fill in the name or keywords of your desired repository and click Clone from GitHub.
- In the pop-up window, select a location to save the repository and click Select as Repository Destination.
- Trae starts to clone the repository. Once complete, the following dialog box appears.
- Perform one of the following operations as needed:
- Click Open to directly open the repository in the current window in Trae.
- Click Open in New Window to open the repository in a new window in Trae.
- In the Do you trust the authors of the files in this folder dialog box:
- (Optional) Check the Trust the authors of all files in the parent folder "Downloads" checkbox.
- Afterwards, this pop-up window will not appear again when you open any folder from the Downloads directory in Trae.
- Click Yes, I trust the authors.
- The selected folder is opened in Trae, and you can start editing it.
Method 3: Clone a Git Repository from its URL
This method does not require authorizing GitHub to log in to Trae, and you can clone a repository directly using its URL.
- Click Clone Git Repository in the middle of the screen or click Select a Project > Clone Git Repository at the top left.
- In the URL input box, fill in the URL of your target repository and click Clone from URL {URL_name}.
- In the pop-up window, select a location to save the repository and click Select as Repository Destination.
- Trae starts to clone the repository. Once complete, the following dialog box appears.
- Perform one of the following operations as needed:
- Click Open to directly open the repository in the current window in Trae.
- Click Open in New Window to open the repository in a new window in Trae.
- In the Do you trust the authors of the files in this folder dialog box:
- (Optional) Check the Trust the authors of all files in the parent folder "Downloads" checkbox.
- Afterwards, this pop-up window will not appear again when you open any folder from the Downloads directory in Trae.
- Click Yes, I trust the authors.
- The repository is opened in Trae, and you can start editing it.
Switch to Another Project
When there are multiple projects in Trae, you can switch between them.
- At the top left of Trae, click Select Project or the name of the project opened in the current window.
- The following panel that displays the projects recently opened appears.
- In the Recent list, select the project you want to switch to.
- Trae opens a new window to load and display the selected project.