当前位置:网站首页>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 .
边栏推荐
- VS2015采用loadlibrary方式调用dll库
- Redis command [gradually improved]
- Explanation of C value type and reference type
- [Yunzhu co creation] [hcsd live broadcast] teach the interview tips of big companies in person
- (Video + graphics) introduction to machine learning series - Chapter 1 Introduction
- 怎么样的框架对于开发者是友好的?
- How to contribute to openharmony
- Using logistic regression and neural network to deal with complex binary classification problems
- Study and exploration of Redux API implementation of Redux
- Use cpolar to publish raspberry pie web pages (improvement of cpolar tunnel)
猜你喜欢

手动从0搭建ABP框架-ABP官方完整解决方案和手动搭建简化解决方案实践

开放原子开源基金会黄金捐赠人优博讯携手合作伙伴,助力OpenHarmony破圈!

数仓项目踩坑记录与解决方法总结

Cloud native management practice: business led Devops continuous delivery system

不用Swagger,那我用啥?

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

Evaluation index of machine learning classification model and implementation of sklearn code

Network security (5)

上海交大牵手淘宝成立媒体计算实验室:推动视频超分等关键技术发展

STM32 application development practice tutorial: getting to know STM32 for the first time
随机推荐
Pyqt5 rapid development and practice 6.4 qboxlayout (box layout)
23考研人撑住!考研第一波弃考高峰期已经到来!
Behind 100000 visits...
【集中培训】HCIP-Cloud Computing 资源交流帖
"Defects" of prototype chain inheritance and constructor inheritance
【机器学习】朴素贝叶斯代码练习
网络安全(5)
Opencv introductory basic learning
Unity 引导系统.点击目标物体后提示文字变色进入下一步
How does alternates achieve high-performance publish and subscribe?
STM32 application development practice tutorial: design and implementation of controllable LED water lamp
Cloud native management practice: business led Devops continuous delivery system
Pyqt5 rapid development and practice 6.5 qgridlayout (grid layout)
【机器学习】逻辑回归代码练习
Configuration file settings for remote connection to Windows version server redis
Nutnews developed based on arkui ETS
C # use restsharp library to realize post request
Use cpolar to publish raspberry pie web pages (improvement of cpolar tunnel)
核酸扫码登记体验有感(如何提高OCR的文字正确识别率)
Shutter gradient