Sublime Text 3中设置tab键为4个空格

问题描述: 编写Verilog代码时,如果tab键为直线,经常不能对齐,代码看起来很凌乱,将tab键改为4个空格,代码整齐划一,非常美观。

解决办法:
1、找到文件[安装目录]/Data/Packages/User/Preferences.sublime-settings;
2、用其他文本编辑器打开该文件,添加下面两行:
{
“tab_size”: 4,
“translate_tabs_to_spaces”: true,
}
修改后的内容如下所示:
{
“color_scheme”: “Packages/Solarized Color Scheme/Solarized (dark).tmTheme”,
“font_size”: 11,
“tab_size”: 4,
“translate_tabs_to_spaces”: true,
“ignored_packages”:
[
“Vintage”
],
“theme”: “Default.sublime-theme”
}
3、保存该文件,退出ST3,重新进入就可以了。

猜你喜欢

转载自blog.csdn.net/david_xtd/article/details/78839858