This section describes how to create a new workspace to edit an existing codebase.
-
A running instance of Eclipse Che. To install an instance of Eclipse Che, see Che 'quick-starts'.
-
An existing workspace with plug-ins related to your development environment defined on this instance of Eclipse Che Creating a workspace from user dashboard.
There are two ways to do that before starting a workspace:
To create a new workspace to edit an existing codebase, use one of the following three methods after you have started the workspace:
Importing from the Dashboard into an existing workspace
-
Import the project. There are at least two ways to import a project via the Dashboard.
-
From the Dashboard, select Workspaces, then select your workspace by clicking on its name. This will link you to the workspace’s Overview tab.
-
Or, use the gear icon. This will link to the Devfile tab where you can enter your own YAML configuration.
-
-
Click the Projects tab.
-
Click Add Project. You can then import a sample project, create a blank project, import from a Git project, or import from a zip file.
|
You can add a project to a non-running workspace, but you must start the workspace to delete it. |
Creating a new repository
To add a blank project:
-
Type a name and a description in the Name and Description fields.
-
Click Open to open your workspace.
Editing an existing repository
To edit an existing repository:
-
Choose the Git project or zip file, and Che will load it into your workspace.
-
To open the workspace, click the Open button.
Editing the commands after importing a project
After you have a project in your workspace, you can add commands to it. Adding commands to your projects allows you to run, debug, or launch your application in a browser.
To add commands to the project:
-
Open the workspace configuration in the Dashboard, then select the Devfile tab.
-
Open the workspace.
-
To run a command, select Terminal > Run Task from the main menu.
-
To configure commands, select Terminal > Configure Tasks from the main menu.
Importing to a running workspace using the Git: Clone command
To import to a running workspace using the Git: Clone command:
-
Start a workspace, then use the Git: Clone command from the command palette or the Welcome screen to import a project to a running workspace.
-
Open the command palette using
F1orCTRL-SHIFT-P, or from the link in the Welcome screen.
-
Enter the path to the project you want to clone.
Importing to a running workspace with git clone in a terminal
In addition to the approaches above, you can also start a workspace, open a Terminal, and type git clone to pull code.
|
Importing or deleting workspace projects in the terminal does not update the workspace configuration, and the change is not reflected in the Project and Devfile tabs in the dashboard. Similarly, if you add a project via the Dashboard, then delete it with |