Cursor Start Intro
Cursor Editor is a powerful and user-friendly code editor, especially suitable for beginners and intermediate developers.
This article will provide a detailed introduction to the Cursor Editor interface, helping you quickly get started and make full use of its features.
## 1. Overview of the Main Interface
The main interface of Cursor Editor is designed to be simple and intuitive, consisting of the following main parts:
* **Menu Bar**: Located at the top of the window, it contains menu items such as File, Edit, View, Run, Tools, and Help.
* **Sidebar**: Located on the left side of the window, it typically displays project file structure, search, version control, and other functions.
* **Editor Area**: Located in the center of the window, this is the primary area for writing and editing code.
!(#)
## 2. Detailed Explanation of the Menu Bar
### 2.1 File Menu
* **New File**: Create a new code file.
* **Open File**: Open an existing code file.
* **Save File**: Save the currently edited file.
* **Save As**: Save the current file as a new file.
* **Close File**: Close the currently opened file.
!(#)
### 2.2 Edit Menu
Main functions:
* **Undo**: Undo the last editing action.
* **Redo**: Redo the last undone action.
* **Cut**: Cut the selected text.
* **Copy**: Copy the selected text.
* **Paste**: Paste the content from the clipboard.
* **Find**: Find specified text within the current file.
* **Replace**: Find and replace specified text within the current file.
!(#)
### 2.3 Window/View Menu
* **Zoom In**: Increase the font size in the editor area.
* **Zoom Out**: Decrease the font size in the editor area.
* **Reset Zoom**: Restore the font size in the editor area to the default value.
* **Full Screen**: Switch the editor to full-screen mode.
!(#)
### 2.4 Run Menu
Main functions:
* **Run**: Run the currently edited code.
* **Debug**: Start debug mode, execute the code step by step, and view variable values.
!(#)
### 2.4 View Menu
Main functions:
* **Command Palette**: Open the command palette.
* **Appearance**: Set the display and hiding of various appearance views.
!(#)
## 3. Detailed Explanation of the Sidebar
The sidebar is an important part of the Cursor Editor, providing multiple functions:
* **Command Palette**: Open the command palette.
* **Appearance**: Display various function panels, such as the status bar.
* **Editor Layout**: Set the layout method of the editor.
!(#)
By default, Cursorβs activity bar is placed horizontally, which saves space and facilitates integration with chat features.
!(#)
If you prefer the traditional vertical activity bar, you can adjust it according to the following steps:
* Open **Cursor Settings**.
* Search for and find **workbench.activityBar.orientation**, and set its value to **vertical**.
* Restart Cursor for the change to take effect.
!(#)
Effect after changing to **vertical** and restarting:
!(#)
## 4. Detailed Explanation of the Editor Area
The editor area is the primary region for writing and editing code, featuring the following characteristics:
* **Syntax Highlighting**: The editor uses different colors to highlight code based on its syntax structure, improving code readability.
* **Auto-completion**: While typing code, the editor automatically suggests possible code completion options, enhancing coding efficiency.
* **Code Folding**: You can fold code blocks, making it easier to view and edit large code files.
* **Multi-cursor Editing**: Supports editing multiple cursor positions simultaneously, facilitating batch code modifications.
!(#)
## 5. Detailed Explanation of the Status Bar
The status bar is located at the bottom of the window and displays the current fileβs status information, including:
* **Line and Column Numbers**: Displays the line and column number where the cursor is currently located.
* **Encoding Format**: Displays the encoding format of the current file, such as UTF-8.
* **File Type**: Displays the type of the current file, such as Python, JavaScript, etc.
* **Git Status**: Displays the Git status of the current file, such as modified, committed, etc.
!(#)
YouTip