Unity Mac Pit Diary

1. Use IO to read external folders, and use www or UnityRequest to read StreamingAsset or Unity defined folders or server files.

2. When using www under mac, you need to add the prefix: "file://"

3. Rider on Mac is easy to use and breakpoint debugging is also very convenient.

4. Change the file encoding format. Use vscode to save through encoding and save it as a UTF8 file with BOM format on Mac.

5. Rider shortcut button

Commonly used

Ctrl + Z Undo the last modification
Ctrl + Shift +Z Revert the last modification
Ctrl + Alt + L Arrange code
Ctrl + R Replace text
Ctrl + Shift + R Replace all contents of the project
Ctrl + “+” Expand text
Ctrl + Shift + “+ "Expand all text
Ctrl + "-" Collapse text
Ctrl + Shift + "-" Collapse all text
Ctrl + Alt + Insert Create a file in the current directory
Shift + Alt + left mouse button to multi-cursor, left button again to cancel the cursor
ALT + 6 Rider prompts
ALT + 9 file changes (needs to be combined with version management tools)

Find

Ctrl + B Jump to declaration and implementation
Shift + Shift Find all (files, classes, symbols, behaviors)
Ctrl + Shift + N Find files
Ctrl + Shift + F Search all contents of the project
Ctrl + F12 All functions and variables of the current file

Jump

Ctrl + Tab Switch open files
Ctrl + E Display recently opened files
Ctrl + F11 Add label
Ctrl + label jump label position (matched Ctrl + F11)
Shift + Alt + ↑ or ↓ Move the selected block/current line
Alt + ↑ or ↓ Move the cursor to the upper and lower function positions
Ctrl + Home Move the cursor to the beginning of the file
Ctrl + End Move the cursor to the end of the file

debug

Ctrl + F5 Rerun the project
Ctrl + F2 Terminate the project
F7 Single-step into the sub-function
F8 Single-step into the sub-function
F9 Continue running
Ctrl + F8 Breakpoint

Alignment

Ctrl+Alt+L

Guess you like

Origin blog.csdn.net/dlyxaj/article/details/132447053