转载请说明出处:http://blog.csdn.net/cywosp/article/details/34429697
git clone --recursive https://github.com/quarnster/SublimeClang SublimeClang然后到https://github.com/quarnster/SublimeClang/downloads下载SublimeClang-1.0.41.sublime-package包,下载完成后把其重命名为SublimeClang-1.0.41.sublime-package.zip,然后解压把其中以dll结尾的文件拷贝到SublimeClang\internals目录中,重启sublimetext则可以再菜单栏Preferences->Package Settings中看到SublimeClang
另一种方法:如果你系统中没有安装git,则到http://pan.baidu.com/s/1hq7iXHM下载别人已经弄好的包,然后解压放到插件目录下即可
点击Preferences->Package Settings->SublimeClang->Settings - User,在打开的问文件中输入如下:{"show_output_panel": false,"dont_prepend_clang_includes": true,"inhibit_sublime_completions": false,"options":["-IC:\\cygwin64\\usr\\include","-IC:\\cygwin64\\usr\\include\\*","-IC:\\cygwin64\\lib\\gcc\\x86_64-pc-cygwin\\4.9.0\\include","-IC:\\cygwin64\\lib\\gcc\\x86_64-pc-cygwin\\4.9.0\\include\\c++","-IC:\\cygwin64\\lib\\gcc\\x86_64-pc-cygwin\\4.9.0\\include\\c++\\*",]}
注:4.9.0是gcc的版本,替换成对应的版本就可以了,如果你安装的是MinGM,那配置只是更换路径而已。配置好之后,重启SublimeText
if (/* condition */){/* code */}
<snippet><description>If Condition</description><content><![CDATA[if (${1:/* condition */}){${0:/* code */}}]]></content><tabTrigger>if</tabTrigger><scope>source.c, source.objc, source.c++, source.objc++</scope></snippet>
<snippet><description>If Condition</description><content><![CDATA[if (${1:/* condition */}) {${0:/* code */}}]]></content><tabTrigger>if</tabTrigger><scope>source.c, source.objc, source.c++, source.objc++</scope></snippet>
if (/* condition */) {/* code */}
点滴记录——Windows 7中安装Sublime Text 3、cynwin、SublimeClang,布布扣,bubuko.com
点滴记录——Windows 7中安装Sublime Text 3、cynwin、SublimeClang
原文地址:http://blog.csdn.net/cywosp/article/details/34429697