Source Insight 4.0常用设置

本文以Source Insight 4.00.0089版本为例。

1、显示代码行数

Options->File Type Options…->C/C++ Source File->勾选Show line numbers

Source Insight 4.0常用设置

2、设置代码字体大小

Options->File Type Options…->C/C++ Source File->点击Screen Font...

Source Insight 4.0常用设置

3、设置Tab键扩展为空格

Options->File Type Options…->C/C++ Source File->勾选Expand tabs to spaces

Source Insight 4.0常用设置

4、设置选中单词后自动高亮

Options->File Type Options…->C/C++ Source File->勾选Highlight references to selected symbol

Source Insight 4.0常用设置

高亮显示还可以按快捷键F8,再按一次F8取消高亮显示。

5、设置窗口背景颜色

Options->Preferences->Colors & Fonts->Window Background

Source Insight 4.0常用设置

背景色一般设置为豆沙绿,RGB值为:R 230 G 247 B 232

Source Insight 4.0常用设置

6、取消概要视图Overviews显示

Options->Preferences->Display->取消勾选Overviews(based on file type)

Source Insight 4.0常用设置

7、修改选项卡配置

Source Insight 4.0常用设置

在选项卡上右击->Window Tab Options...

Source Insight 4.0常用设置

8、添加编译器C库路径

在Source Insight 使用过程中,编译器自带的C库函数并没有导入,需要添加编译器C库路径

Source Insight 4.0常用设置

这里有两个导入外部标识符的选项,第一个是全局有效,第二个是只为当前工程导入

Source Insight 4.0常用设置

Source Insight 4.0常用设置

Source Insight 4.0常用设置

将库的路径粘贴到输入框,点击OK,重新同步一下代码即可。