Post sourceinsight and atyle

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.