Creating a Cangjie Project

The following figure shows the directory structure of a Cangjie project.

Project_name: user-defined name

├── src: code directory

│    └── main.cj: source code file

└── cjpm.toml: default configuration file cjpm.toml

Using the VSCode Command Palette

In VSCode, press F1 or press Ctrl + Shift + P (Command + Shift + P for macOS) to open the command palette. Perform the following steps to create a Cangjie project.

Step 1: Select the command for creating a Cangjie project.

createProject_1

Step 2: Select Cangjie backend.

createProject_2

Step 3: Select a project template.

createProject_3

Step 4: Select a project path.

createProject_4

Step 5: Enter the project name.

Select a path for storing the project and enter the project name.

Step 6: Create the project and open it.

createProject_6

Using a Visualization View

In VSCode, press F1 or press Ctrl + Shift + P (Command + Shift + P for macOS) to open the command palette. Perform the following steps to create a Cangjie project.

Step 1: Select the command for creating a Cangjie visualization project.

createProjectView_1

Step 2: Open the Create New Cangjie Project page.

createProjectView_2

Step 3: Select a project template.

createProjectView_4

Step 4: Select a project path.

createProjectView_5

Step 5: Enter the project name.

createProjectView_6

Step 6: Click Confirm to create and open the project.

createProjectView_7