source insight 常用设置

设置编辑栏背景色

  1. 菜单->options->preferences
  2. colors & fonts ->点击 pick color按钮->设置保护色RGB为:199,237,204->添加到自定义颜色,确定->确定。
  3. 回到编辑页面后->右键点击->style
    properties->colors,backgroud选择为“=”,不要选set或者pick。

护眼色,看起来舒服多了,码农们学着对自己眼睛好一点!

project files list options背景色

  1. 点击左下角齿轮按钮
  2. 点击font & colors,点击back color
  3. 选择前面保存的自定义颜色,确定

symbols window options背景色

  1. 点击左下角齿轮按钮
  2. 点击font & colors,点击back color
  3. 选择前面保存的自定义颜色,确定

解决source insight 显示字体大小不一

  1. source insight 3.5, view --> draft view", 就可以让每个字符的宽度一致了
  2. source insight 4.0,View -> Mono Font View
  3. Mono Font View字体太小怎么办?简单,右键点击style properties->选择mono font view->修改size,即可改变显示大小,并且取消 Mono Font View以后不影响原设置。

这下各种标识符都是一样大小了,看着舒服多了!

关于mono font view,官方解释:
The Mono Font View command on the View menu toggles the Mono Font View mode on and off. When this mode is on, all syntax formatting is suppressed, except for color changes, and a mono-spaced font is used.

Use Mono Font View to quickly see how text columns lines up. You can edit the Mono Font View font in Style Properties

All text is displayed using the “Mono Font View” style, which can be edited with the Style Properties dialog box. The “Mono Font View” style is preset to use a mono-spaced font. See: Style Properties.

The Syntax Formatting features of Source Insight are powerful, and allow you to use a variable pitch font if you want, but sometimes you need to see how text will line up in another editor or in a simple display mode when only a single font is used. Mono Font mode is useful for quickly switching your display to a basic mono-spaced font display. This is particularly useful if you are using spaces instead of tab characters to line col­umns up.

When Mono Font mode is active, it overrides the settings of the Preferences: Syntax Formatting and Syntax Decorations dialog boxes.

选择是否显示右侧滑动概览图

菜单->view->选中或取消overview.

解决汉字显示乱码问题

汉字乱码问题是因为encoding保存和读取方式不一样,常用的编码方式有ANSI和unicode,对英文字母来说,两种方式编码相同,但ANSI占用一个字节,unicode使用两个字节。
GB2312和BGK都是ANSI的组成部分,GBK向上兼容GB2312;
UTF-8本来是unicode的一种传输格式,现在也用来当做保存文件的编码方式。

  1. 设置编码格式:options->preferences->files->default encoding选择utf-8
  2. 设置以何种编码格式读取文件:file->reload as encoding ->选择utf-8
  3. 设置另存为编码格式:file->save as encoding->选择utf-8

Source Insight 4.0代码格式化设置

  1. tools ->reformat source code options->add->命名my_own。
  2. edit preset->取消convert spaces to tab,indent width设置为4
  3. 选中else if on same line
    参考:
    To reformat your source code:
    1.Either select a block of code, or leave an insertion point in your file to format the whole file.
    2.Select Tools > Reformat Source Code Options
    3.The Reformat Source Code Options dialog will appear. Select your desired preset and click the For­mat button.
    The preset you select will become the “current preset”. Once selected, you can use the Tools > Reformat Source Code with xxx Preset command to reformat your code in one step.

参考:
添加链接描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值