当前位置:网站首页>Sublime Text3 set different indents for different files
Sublime Text3 set different indents for different files
2022-07-29 09:38:00 【Sabo】
Sublime Text3 The default indentation in is universal 4 Placeholders
Take the front-end file as an example , Now in the mainstream specification Vue,HTML,JS,CSS And so on 2 A space placeholder , Can pass sublime text3 Set single file in the lower right corner , But each time you create a new file, you need to set it separately , This is more complicated , It's also inefficient
A more efficient way is to set the global settings directly , Such as setting HTML The file is indented as 2 A space
Step one
Open one html file
Step two
Sublime Text3 Select... From the top menu Preferences -> Settings - Syntax Specific, It's going to open up a HTML.sublime-settings file , The default configuration is empty
Step three
Set indent to 2 A space , Set separately tab-size ,translate_tabs_to_spaces Attribute is enough , Restart it Sublime Text3, This creates a new HTML The file is indented with two spaces by default .
{
"tab_size": 2,
"translate_tabs_to_spaces": true
}
The idea of setting other types of files is the same .
边栏推荐
- 使用cpolar发布树莓派网页(cpolar隧道的完善)
- Fluent text editor
- How to introduce your project experience?
- 高智伟:数据管理赋能交通行业数字化转型
- WebAssembly 2022 问卷调查结果新鲜出炉
- Solve the problem of reading data garbled by redis visualization tool
- System architect learning
- Network security (6)
- HarmonyOS 3.0 发布!
- Study and exploration of Redux API implementation of Redux
猜你喜欢

Pyqt5 rapid development and practice 6.4 qboxlayout (box layout)

Axurerp prototype design starts quickly

【BERT-多标签文本分类实战】之一——实战项目总览

Virtual machines use host graphics cards (Hyper-V and wsl2)

Behind 100000 visits...

Pytest+allure generate test report
![[Apple Developer account]06 after transferring the developer account, the annual fee of the developer is automatically renewed](/img/a7/12fd63f16ebca81a3dd2d1b97847d1.png)
[Apple Developer account]06 after transferring the developer account, the annual fee of the developer is automatically renewed

Source code analysis of senparc.weixin.sample.mp

QMainWindow 详解

Opencv introductory basic learning
随机推荐
Behind 100000 visits...
Commonly used DOS commands [gradually improved]
Summary of research on endogenous information security technology of industrial measurement and control equipment
《UnityShader入门精要》总结(2):初级篇
STM32 application development practice tutorial: getting to know STM32 for the first time
NFA determination and DFA minimization based on C language
redis命令[逐渐完善]
[machine learning] logistic regression code exercise
mysql将部分表名统一转换为大写
Handwritten character recognition
redis可视化工具读取数据乱码问题解决
WebAssembly 2022 问卷调查结果新鲜出炉
40余岁的边缘老技术,是未来乏力还是掘地而起?
基于C语言模拟实现DFA识别字符串
How to change MySQL into Chinese
Excel tool for generating database table structure
查看端口占用情况
机器学习之分类模型评估指标及sklearn代码实现
远程连接windows版本服务器redis的配置文件设置
vector实现