Technology Sharing

vscode edit keil project

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

1. Coding Issues

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.

2. vscode settings do not display certain files or folders

VSCode settings do not display certain files or folders_Build files are not displayed in VSCode Explorer-CSDN Blog

3. .gitignore file - How to ignore files and folders in Git

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

vscode submit git keeps spinning in circles_vscode submit github code keeps spinning in circles-CSDN blog