Source Insight4.0 Style Properties(样式属性)配置

source insight添加astyle 最近在source insight上看公司的源码,发现格式混乱不堪,于是发现了Astyle这个宝贝,这里分享一下安装经验: 1.从 http://astyle.sourceforge.net/ 上下载astyle.exe 2.将下载的astyle.exe放到磁盘(位置不限),我放在E:\si4.0下。 3.在菜单栏的Tools->Custom Commands界面上点击Add起一个名字,我... 阅读详情

 习惯了Visual Studio的代码编辑套件VASSISTX的代码配色方案,于是将Source Insight4.0的代码配色方案也改成同样的。

 配置对应的xml文件内容如下:(背景颜色为浅绿色保护眼睛:RGB 217,238,219)



<?xml version="1.0" encoding="utf-8"?>
<SourceInsightConfiguration
	AppVer="4.00.0084"
	AppVerMinReader="4.00.0032"
	>
	<!-- This is a Source Insight configuration file. -->
	<!-- www.sourceinsight.com -->

	<Styles
		StyleAppVer="4.00.0084"
		>
		<Style Name="Default Text" />
		<Style Name="Number" Bold="0" TextColor="#ff0080" />
		<Style Name="Operator" Bold="1" TextColor="#000034" />
		<Style Name="Delimiter" TextColor="#800080" KeepWithNextLine="1" />
		<Style Name="Comment" TextColor="#008c00" />
		<Style Name="String" FixedWhiteSpace="0" TextColor="#981c18" />
		<Style Name="Keyword" TextColor="#001bec" />
		<Style Name="Control" TextColor="#0000e1" />
		<Style Name="Special" Bold="1" Italic="0" TextColor="#800080" />
		<Style Name="Boolean" TextColor="#800080" />
		<Style Name="Debug" Italic="0" Underline="None" TextColor="#ff0000" />
		<Style Name="Null Value" TextColor="#ff0000" />
		<Style Name="System" TextColor="#008000" />
		<Style Name="Declaration" Bold="0" TextColor="#000000" />
		<Style
			Name="Ref To Local"
			TextColor="#181ba0"
			ParentStyle="Reference"
			/>
		<Style Name="Reference" TextColor="#000000" />
		<Style Name="Directive" ParentStyle="Control" />
		<Style
			Name="Line Number"
			TextColor="#808080"
			FontName="Consolas"
			FontPitchFamily="1"
			FontCharset="0"
			/>
		<Style
			Name="Highlight"
			TextColor="#000000"
			BackColor="#ffff00"
			Bold="1"
			/>
		<Style Name="Symbol Characters" ParentStyle="Operator" />
		<Style
			Name="Declare Template Parameter"
			Underline="None"
			ParentStyle="Declaration"
			/>
		<Style Name="Ref to Parameter" Bold="0" ParentStyle="Ref To Local" />
		<Style Name="Declare Template" ParentStyle="Declare Function" />
		<Style Name="Declare Package" ParentStyle="Declaration" />
		<Style Name="Ref to Template" ParentStyle="Reference" />
		<Style Name="Ref to Package" ParentStyle="Reference" />
		<Style Name="Ref to Template Parameter" ParentStyle="Reference" />
		<Style Name="Selection" TextColor="#ffffff" BackColor="#000080" />
		<Style Name="Declare Namespace" ParentStyle="Declaration" />
		<Style Name="Ref to Namespace" ParentStyle="Reference" />
		<Style
			Name="Declare Local"
			Bold="0"
			TextColor="#002166"
			ParentStyle="Declaration"
			/>
		<Style Name="Declare Member" ParentStyle="Declaration" />
		<Style Name="Declare Method" ParentStyle="Declare Function" />
		<Style Name="Declare Method Inline" ParentStyle="Declare Function" />
		<Style
			Name="Declare Function"
			ParentStyle="Declaration"
			KeepWithNextLine="1"
			TextColor="#880000"
			/>
		<Style
			Name="Declare Macro"
			TextColor="#6f009b"
			ParentStyle="Declaration"
			/>
		<Style
			Name="Declare Struct"
			KeepWithNextLine="1"
			ShadowColor="#c0c0c0"
			ParentStyle="Declaration"
			/>
		<Style Name="Declare Union" ParentStyle="Declare Struct" />
		<Style
			Name="Declare Typedef"
			TextColor="#216f85"
			ParentStyle="Declare Struct"
			/>
		<Style Name="Declare Class" ParentStyle="Declare Struct" />
		<Style
			Name="Declare Var"
			TextColor="#185dbd"
			ParentStyle="Declaration"
			/>
		<Style Name="Declare Constant" ParentStyle="Declaration" />
		<Style Name="Declare Enum" ParentStyle="Declare Struct" />
		<Style
			Name="Declare Enum Const"
			TextColor="#6f008a"
			ParentStyle="Declaration"
			/>
		<Style Name="Declare Edit Macro" ParentStyle="Declare Function" />
		<Style Name="Declare Prototype" ParentStyle="Declare Function" />
		<Style Name="Preprocessor" ParentStyle="Declaration" />
		<Style
			Name="Search Result Heading"
			Bold="1"
			Underline="Single"
			ParentStyle="Declaration"
			/>
		<Style
			Name="Label"
			Scale="100"
			TextColor="#ff0000"
			ParentStyle="Declaration"
			/>
		<Style Name="Declare Interface" ParentStyle="Declare Class" />
		<Style Name="Declare Resource" ParentStyle="Declaration" />
		<Style Name="File" ParentStyle="Declaration" />
		<Style Name="Declare Custom Tag" ParentStyle="Declaration" />
		<Style
			Name="Ref to Func"
			Bold="0"
			TextColor="#880000"
			ParentStyle="Reference"
			/>
		<Style
			Name="Ref to Macro"
			TextColor="#6f009b"
			ParentStyle="Ref to Func"
			/>
		<Style
			Name="Ref to Struct"
			TextColor="#216f98"
			ParentStyle="Reference"
			/>
		<Style Name="Ref to Union" ParentStyle="Ref to Struct" />
		<Style
			Name="Ref to Typedef"
			TextColor="#216f98"
			ParentStyle="Ref to Struct"
			/>
		<Style
			Name="Ref to Global Var"
			Bold="1"
			Italic="0"
			TextColor="#800080"
			ParentStyle="Reference"
			/>
		<Style
			Name="Ref to Const"
			TextColor="#6f008a"
			ParentStyle="Reference"
			/>
		<Style
			Name="Ref to Enum"
			TextColor="#7a008a"
			ParentStyle="Reference"
			/>
		<Style Name="Ref to Custom" ParentStyle="Reference" />
		<Style Name="Ref to EdMacro" Bold="0" ParentStyle="Reference" />
		<Style Name="Ref to Class" ParentStyle="Ref to Struct" />
		<Style Name="Ref to Method" ParentStyle="Ref to Func" />
		<Style Name="Ref to EnumConst" ParentStyle="Ref to Const" />
		<Style Name="Ref to Proto" ParentStyle="Ref to Func" />
		<Style Name="Ref to Preproc" ParentStyle="Reference" />
		<Style Name="Ref to Search" ParentStyle="Reference" />
		<Style
			Name="Ref to Label"
			TextColor="#ff0000"
			ParentStyle="Reference"
			/>
		<Style Name="Ref to Member" ParentStyle="Reference" />
		<Style Name="Ref to Interface" ParentStyle="Ref to Class" />
		<Style Name="Ref to Resource" ParentStyle="Reference" />
		<Style Name="Ref to File" ParentStyle="Reference" />
		<Style
			Name="Comment Heading 1"
			Scale="150"
			Bold="0"
			Underline="Thick"
			FontName="Segoe UI"
			FontPitchFamily="2"
			FontCharset="0"
			ParentStyle="Comment"
			/>
		<Style
			Name="Comment Heading 2"
			Bold="1"
			Scale="130"
			Underline="Single"
			FontName="Segoe UI"
			FontPitchFamily="2"
			FontCharset="0"
			ParentStyle="Comment"
			/>
		<Style
			Name="Comment Heading 3"
			Bold="1"
			Scale="120"
			FontName="Segoe UI"
			FontPitchFamily="2"
			FontCharset="0"
			ParentStyle="Comment"
			/>
		<Style
			Name="Comment Heading 4"
			Bold="1"
			FontName="Segoe UI"
			FontPitchFamily="2"
			FontCharset="0"
			ParentStyle="Comment"
			/>
		<Style Name="Comment Right" Italic="1" ParentStyle="Comment" />
		<Style Name="Ref to Base Class" ParentStyle="Reference" />
		<Style Name="Ref to Inline Type" ParentStyle="Reference" />
		<Style Name="Inactive Code" TextColor="#808080" />
		<Style
			Name="Declare Parameter"
			TextColor="#181ba0"
			ParentStyle="Declaration"
			/>
		<Style
			Name="Auto Annotations"
			Scale="100"
			TextColor="#808080"
			ParentStyle="Comment"
			/>
		<Style Name="HTML or XML Element" />
		<Style
			Name="HTML Title"
			TextColor="#ff0000"
			Bold="1"
			Scale="130"
			Underline="Single"
			/>
		<Style Name="Perl POD" />
		<Style Name="Perl End Script" />
		<Style Name="Declare Method Prototype" ParentStyle="Declare Method" />
		<Style Name="Ref to Method Prototype" ParentStyle="Ref to Method" />
		<Style
			Name="Comment To Do"
			Bold="1"
			Scale="120"
			BackColor="#ffff00"
			FontName="Segoe UI"
			FontPitchFamily="2"
			FontCharset="0"
			ParentStyle="Comment"
			/>
		<Style Name="Ref to IDL Module" ParentStyle="Reference" />
		<Style Name="Ref to IDL Library" ParentStyle="Reference" />
		<Style
			Name="Declare IDL Module"
			Scale="150"
			ShadowColor="#c0c0c0"
			KeepWithNextLine="1"
			ParentStyle="Declaration"
			/>
		<Style
			Name="Declare IDL Library"
			Scale="150"
			ShadowColor="#c0c0c0"
			KeepWithNextLine="1"
			ParentStyle="Declaration"
			/>
		<Style Name="Comment Single Line" ParentStyle="Comment" />
		<Style Name="Comment Multi Line" ParentStyle="Comment" />
		<Style Name="Parentheses" ParentStyle="Delimiter" />
		<Style Name="HTML Body Text" FixedWhiteSpace="0" />
		<Style Name="HTML Tag" TextColor="#008000" Bold="1" />
		<Style Name="Standard Property" ParentStyle="Ref to Member" />
		<Style Name="Standard Function" ParentStyle="Ref to Func" />
		<Style Name="Standard Object" ParentStyle="Ref to Class" />
		<Style
			Name="Declare CSS Selector"
			Scale="120"
			ParentStyle="Declaration"
			/>
		<Style Name="Declare C# Property" ParentStyle="Declaration" />
		<Style Name="Ref to C# Property" ParentStyle="Reference" />
		<Style
			Name="Mono Font View"
			FontName="Consolas"
			FontPitchFamily="1"
			FontCharset="0"
			/>
		<Style Name="Declare C# Event" ParentStyle="Declaration" />
		<Style Name="Declare C# Indexer" ParentStyle="Declaration" />
		<Style Name="Ref to C# Event" ParentStyle="Reference" />
		<Style Name="Ref to C# Indexer" ParentStyle="Reference" />
		<Style Name="Ref to Alias" Bold="0" ParentStyle="Reference" />
		<Style Name="Declare Alias" ParentStyle="Declaration" />
		<Style Name="CDATA Section" TextColor="#808080" />
		<Style Name="Declare Type Parameter" ParentStyle="Declaration" />
		<Style Name="Ref to Type Parameter" ParentStyle="Reference" />
		<Style
			Name="Snippet Input Field"
			TextColor="#000000"
			BackColor="#a0e1ff"
			Bold="1"
			/>
		<Style Name="Register" TextColor="#008000" Bold="1" />
		<Style
			Name="Python Doc String"
			TextColor="#000080"
			FixedWhiteSpace="0"
			Italic="1"
			/>
		<Style Name="Instruction" ParentStyle="Control" />
		<Style
			Name="Reference Highlight"
			TextColor="#000000"
			BackColor="#aae1ff"
			/>
		<Style
			Name="Declare VHDL Entity"
			Scale="140"
			ShadowColor="#c0c0c0"
			KeepWithNextLine="1"
			ParentStyle="Declaration"
			/>
		<Style
			Name="Declare VHDL Architecture"
			Scale="140"
			ShadowColor="#c0c0c0"
			KeepWithNextLine="1"
			ParentStyle="Declaration"
			/>
		<Style
			Name="Declare VHDL Component"
			ShadowColor="#c0c0c0"
			KeepWithNextLine="1"
			ParentStyle="Declaration"
			/>
		<Style Name="Declare VHDL Process" ParentStyle="Declare Function" />
		<Style
			Name="Declare VHDL Config"
			ShadowColor="#c0c0c0"
			KeepWithNextLine="1"
			ParentStyle="Declaration"
			/>
		<Style Name="Ref to VHDL Entity" ParentStyle="Reference" />
		<Style Name="Ref to VHDL Architecture" ParentStyle="Reference" />
		<Style Name="Ref to VHDL Component" ParentStyle="Reference" />
		<Style Name="Ref to VHDL Process" ParentStyle="Reference" />
		<Style Name="Ref to VHDL Config" ParentStyle="Reference" />
	</Styles>
</SourceInsightConfiguration>


source insight 编程风格(持续更新) source insight 编程风格 插件 阅读详情

相关推荐

Source Insight 4.0 中文注释乱码与护眼配置:2步永久解决+5项视觉优化参数

本文详细解决了Source Insight 4.0中文注释乱码问题,并提供了5项视觉优化参数配置,帮助开发者打造更舒适的编码环境。通过设置UTF-8编码和优化护眼配色方案,有效提升开发效率和视觉舒适度。

weixin_30696427的博客 371

AStyle代码格式工具在source insight中的使用

from :  http://blog.csdn.net/gw_cs/article/details/7927735 一、AStyle下载路径   Astyle为开源项目,支持C/C++和java的代码格式化   Home Page: http://astyle.sourceforge.net/   Project Page: http://sourceforg

Fybon的专栏 3471

Source Insight 4.0代码理解实战:STM32与CubeMX工程配置指南

Source Insight 是面向嵌入式C/C++代码深度理解的符号级分析工具,其核心原理是基于文件类型识别、宏预处理与语法解析构建动态语义网络,区别于传统IDE的编译导向设计。技术价值在于将分散的头文件、条件编译宏、inline函数及结构体成员转化为可跳转、可追溯、可关联的符号图谱,显著提升代码考古效率。典型应用场景包括STM32标准库项目梳理、CubeMX生成代码的HAL模块逆向分析、工业协议(如Modbus TCP)跨平台阅读等。本文聚焦source insight 4 sn配置要点与stm32标准

weixin_34082695的博客 395

Source Insight3.5主题设置

Source Insight3.5主题设置技巧分享

qiushui984620的博客 5865

Source Insight护眼配色方案:青墨暗色主题完整配置指南

程序员每天长时间面对代码编辑器,视觉疲劳和眼睛干涩往往与默认的高亮度配色密切相关。Source Insight 作为经典代码阅读工具,默认纯白背景与高饱和蓝色关键字虽然辨识度高,却在暗光环境下形成过强对比,加剧眼部负担。护眼配色的核心原理在于降低背景亮度、减少高饱和蓝字刺激,并让注释、字符串等高频元素使用低饱和色值,从而构建柔和且有层次的视觉关系。本文从护眼设计逻辑出发,介绍一套完整的暗色主题配置方案——“青墨暗色”,覆盖全局背景、光标行、语法高亮、字体选择以及配置迁移技巧,并给出可直接套用的色值参数表。通

weixin_33859135的博客 100

嵌入式Linux内核开发:从Source Insight迁移到VSCode+Clangd实战

在嵌入式Linux内核开发中,代码阅读与跳转效率直接影响开发体验。传统工具如Source Insight基于文本索引,对宏展开、条件编译等现代C代码语义理解有限,导致跳转不准、索引缓慢。Clangd基于LLVM编译器前端,通过编译数据库(compile_commands.json)实现语义级代码分析,能准确解析宏、函数指针和条件编译分支,显著提升跳转准确率和补全体验。结合VSCode的跨平台与插件生态,该方案尤其适合IMX6ULL等ARM开发板的内核代码阅读,帮助开发者高效追踪调用链、理解复杂宏定义,实现工

weixin_33911824的博客 391

如何在source insight中使用astyle的代码整理功能?

http://blog.csdn.net/armygeneral/article/details/6346515 用source insight 编辑代码时,苦于source insight没有集成的代码格式化工具, GNU的astyle是一个免费的代码格式化工具,能够整理符合c/c++规范 。  我们可以将astyle.exe外挂到SourceInsight中。详细步骤如下:   1

qiongguishanglu的专栏 1309

Source Insight背景与字体颜色个性化设置指南

进入,你会看到一堆颜色项:名称功能推荐值Text主文本颜色#D4D4D4Background背景色#1E1E1ESelection选区背景#264F78SelText选中文本色#FFFFFF括号匹配高亮#FFCC00当前行背景#2A2A2A💡 操作技巧:- 尽量手动输入 Hex 值,避免调色板取色不准- 修改后实时预览,立即看到效果- 导出.cf3文件备份或团队共享。

weixin_42596011的博客 1244

Source Insight 4.0嵌入式代码理解实战指南

Source Insight不是IDE,而是一款面向C/C++嵌入式项目的深度代码理解工具,其核心在于构建符号数据库实现跨文件语义导航。它基于静态分析与预处理器宏识别,将分散的头文件、源码、汇编及链接脚本统一建模,从而支撑函数调用链追踪、结构体成员定位、条件编译块感知等关键能力。技术价值体现在大幅降低大型遗留工程(如STM32标准库、CubeMX生成项目、Modbus TCP协议栈)的认知负荷,提升代码可维护性与协作效率。典型应用场景包括嵌入式固件重构、第三方SDK集成分析、跨平台驱动开发等。本文聚焦Sou

weixin_34210740的博客 427

Source Insight Style 黑色背景主题

SourceInsight Style 黑色背景主题 保护眼睛,代码高亮也好用

source insight4超经典配色主题

看到atom等软件上很多配色方案特别经典,所以移植到SI4上分享给大家。 1、基本上下载了网上大部分的高分配色方案比较了,找同款颜色RGB; 2、找不到方案的,直接用PS取了同样的颜色RGB; 3、主要借鉴了onedark以及monokia方案。 强迫症,有个网上分享的蓝色特别好看,专门用airbook打开看效果,用PS吸管一点点找到的RGB,很费时间,希望喜欢。(不同显示器效果有差异)

代码 阅读器:SI (Source Insight)、vscode(Visual Studio Code)、code-server、Visual Studio、OpenGrok

代码 阅读器:IDE、SI (Source Insight)、OpenGrok

freeking101的博客 7548

Source Insight4.0黑色背景的颜色配置文件.最佳配色方案及颜色字体

背景颜色黑色,特点:全局变量,本地变量,传递参数变量用不同颜色区分。操作符亮点显示,防止看漏。其余颜色均采用保护色,对眼睛视力有利。

Source Insight 4.0 安装汉化、护眼配色与索引优化指南

在大型C工程维护中,代码阅读效率往往比编写本身更关键。代码浏览器通过符号索引建立跨文件符号数据库,记录定义、引用与调用关系,从而支撑快速跳转、引用查找和调用链分析。Source Insight 4.0 正是这类工具的代表,其索引速度、跳转准确度和关系窗口对嵌入式、驱动及后台服务老代码库尤其有价值。实际落地时,安装、汉化、护眼配色、字体行距与符号索引调优会直接影响长期使用体验;若版本不匹配、配色过亮或索引策略不当,容易遇到闪退、眼疲劳和卡顿。围绕这些工程实践,可系统整理 Source Insight 4.0

weixin_30423065的博客 187

source insight 4.0 配色方案

内含两款配色方案,都是比较有特点的,看着会舒服些,暗黑风格的。配置方法可看本人博客,里面有详细介绍如何在source insight 4.0上配置自己想要的界面。

Sourceinsight配色方案

Sourceinsight超好看护眼的配色方案文件,如果想自己设置,可以参考https://editor.csdn.net/md?not_checkout=1&articleId=110563035

source insight 4.0无法修改字体的解决方法

option选项下面 ① DocumentsOptions-->ScreenFonts用于控制所有字体的大小和字体 ② StyleProperties-->可以针对不同部分(比如Comment,Declaration...)进行字体的属性设置 本人修改DocumentsOptions-->ScreenFonts的字体类型后,只有outline和文件列表区域的字体发生了变化,代码区还是原来的字体 使用第二种方法,修改Mono Font View的字体后代码区的字体终...

shirinngunn的博客 1171

Fluent VOF造波从入门到放弃?手把手教你用k-w SST模型搞定波浪模拟

本文详细介绍了使用Fluent VOF和k-w SST模型进行波浪模拟的实战技巧,从参数设置到结果优化,帮助用户避开常见误区。通过工业项目验证的配置方案,提升波浪模拟的准确性和计算效率,特别适合处理多相流和复杂湍流场景。

weixin_27102543的博客 422

DouK-Downloader 完全手册:抖音 TikTok 作品批量下载与数据采集实战指南

DouK-Downloader(历史项目名 TikTokDownloader)是一款完全开源、基于 HTTPX 异步模块的抖音与 TikTok 数据采集、作品批量下载工具,一个程序覆盖账号作品批量下载、评论与热榜采集、直播拉流获取、剪贴板监听下载,并支持 FastAPI 服务化部署,适合个人作品归档与团队素材入库两类场景。 ## 先判断合不合适:能力边界速查表 选型前先对照下面的边界,能省掉大

gitblog_01053的博客 230

地瓜派RDK X5部署YOLOv11n避坑指南:手把手教你解决Softmax算子导致的性能暴跌问题

本文详细介绍了在地瓜派RDK X5开发板上部署YOLOv11n模型时遇到的性能问题及解决方案。通过强制BPU部署Softmax算子,成功将推理速度从7FPS提升至47FPS,并提供了完整的优化流程和技术细节,帮助开发者避免类似性能陷阱。

weixin_42629671的博客 269

手把手教你学 MATLAB 实战训练(6.5):基础实战实例

MATLAB 是一款强大的数学软件,广泛应用于工程计算、信号处理、控制系统设计、图像处理等领域。学习 MATLAB 不仅可以提高你的编程技能,还能帮助你解决实际的数学和工程问题。下面我将通过几个实战训练实例来教你如何使用 MATLAB。

xiaoheshang_123的博客 366
上一篇: linux下编译ZBar出错 stdio2.h:140:1: error: expected identifier or ‘(’ before ‘{’ token
下一篇: Linux环境下交叉编译 GmSSL库
力宁
博客等级 码龄12年 13粉丝 42原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值