OurceinsightProblem Summary
I 've been watching H.263'sSource codeThe source insight is really convenient and looks faster. However, some problems still occur when using source insight. Let's make a summary below. If there are other problems in the future, we can add them at any time.
1,Only half Chinese characters can be deleted
Indeed, when source insight deletes Chinese characters, it deletes half of the Chinese characters. If it deletes half of the Chinese characters, it is garbled and annoying to write comments. Finally, it finds a macro on the Internet, when you press the return key, this problem can be basically solved. This macro is included in the attachment. The usage files are described as follows:
* Installation:
* ① Copy the file to the sourceinsight installation directory;
* ② Project → open project: Open the base project;
* ③ Add the copied superbackspace. Em to the base project;
* ④ Restart sourceinsight;
* ⑤ Options → key assignments, bind MARCO: superbackspace to the backspace key;
* ⑥ Enjoy !!
2,GDI ++Resolution of failures to display Chinese Characters
Due to the installation of the GDI ++ helium version, I don't know why Chinese Characters in source insight cannot be rendered normally. I use the consolas font, at first, I thought that we only needed to create a font link in the GDI ++ configuration. Unfortunately, it was not successful. Online experts say changing the font to "" can solve the problem, but I still cannot try it. Try the last font, and finally confirm that the "" can be displayed normally.
3,CodeFormat
The programming style is not flattering because it is the code of others, and the editing format is also messy. Really want to find a tool to format all the code, there is such a good stuff: astyle, specific parameters can refer to its instructions. I used:
C: \ astyle \ bin \ astyle.exe -- style = ANSI-S4-S-N-l-M0-M40-u -- convert-Tabs -- suffix =. Pre % F
You can install this external command in source insight as follows:
Click option → commandm commands, click Add on the right, and enter a name such as format with astyle as prompted. In run, enter the command line.
Finally, you can bind a shortcut key in option → key assignments, as shown in:
This article is from the "Jing yuan technology column" blog, please be sure to keep this source http://kernel.blog.51cto.com/920538/214369
Attachment download:
Superbackspace macro
Astyle