2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Usually Keil defaults to amsi format, vscode defaults to utf-8 format, and garbled characters will appear when opened directly.
Solution process:
1. If you want to create a keil stage, use the utf- encoding format.
In the regional settings, "select the beta version, provide global utf-8 and global language support", but it did not solve the problem very well, and the information also said that it might cause some unknown encoding problems, so I gave up.
2. Let vscode display the ANSI (or GB 2312) format. At first, I thought that vscode could automatically detect the GB2312 format and then display it, but the detection sometimes worked and sometimes didn't.
Then change it to open gb2312 his by default, and other formats need to be detected and displayed. The result is ok. It can display gb2312 files normally, and can detect and display utf-8 format well.
Therefore, the automatic detection option of vscode is checked at present, and gb2312 is opened by default.
Ignore special filesIgnore special files - Liao Xuefeng's official website
Note: The .gitignore file will still be uploaded to GitHub. The .gitignore file and the files to be ignored are placed in the same directory.
It may also be because I used /Untitled Project.si4project in .gitignore, so I need to put it in the same directory.
Currently, sourceinsiht is preferred. For the same project file, si occupies 10m of memory, while vscode occupies 450m
4. Submit a question
Each git commit in vscode must have a text description, which cannot be empty. This is also how git is used.
5. vscode keeps getting stuck when submitting to git