Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9194100
  • 博文数量: 1728
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19870
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1728)

文章存档

2024年(4)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: IT业界

2012-11-21 11:28:44

在用sourceinsight查看linux内核源码的时候,大家会发现不能查看源码中的makefile和kconfig代码,即不能搜索到makefile和kconfig文件。这是因为source insight默认是不选makefile的,也没有konfig这种类型的文件。下面就说如何让sourceinsight支持查看makefile和kconfig代码:

(1)添加makefile:

进入Options -> Document Options-> 点击Document Type的下拉框,然后选择Make File,在右边的File Filter中,在原先的*.mak后面加上一个分号,即多个不同过滤规则以分号间隔开,再加上*makefile,变成*.mak;*makefile,并且选中Include when adding to projects就行了。

(2)添加kconfig:

点击 Add Type,填入新文件类型的名字kconfig,File Filter中写上*kconfig;kconfig*,再选中下面的Include when adding to projects就行了。

(3)添加支持.s:

进入Options -> Document Options-> 点击Document Type的下拉框,然后选择x86 Asm Source File,在右边的File Filter中,在原先的*.asm;*.inc加上*.s和*.S,即变成*.asm;*.inc;*.s;*.S,并且选中Include when adding to projects就行了。

(4)默认情况下,往Source Insight里输入中文,字间距相当的大,具体设置如下:
a.Options->Style Properties
b. 在左边Style Name下找到Comment Multi Line和Comment.在其右边对应的Font属性框下的Font Name中选“Pick...” 设置为宋体、常规、小四。确定,退回Style Properties界面,Size设为10。最后设置Clolors框下Foreground,点“Pick...”选择一种自己喜欢的颜色就OK了。

阅读(2476) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~