当前位置:网站首页>Sublime Text3 设置不同文件不同缩进
Sublime Text3 设置不同文件不同缩进
2022-07-29 09:35:00 【Sabo】
Sublime Text3 中默认缩进是通用4个占位符
以前端文件为例, 现在主流规范中 Vue,HTML,JS,CSS 等缩进都是2个空格占位符,可以通过 sublime text3 右下角进行单文件设置,但是每次创建新文件都需要单独设置,这样比较繁琐,效率也低
比较高效的一种方式是直接全局设置,如设置 HTML 文件缩进为2个空格
步骤一
打开一个 html 文件
步骤二
Sublime Text3 顶部菜单中选择Preferences -> Settings - Syntax Specific,这时候会打开一个 HTML.sublime-settings 文件, 默认配置为空
步骤三
设置缩进为2个空格,分别设置 tab-size ,translate_tabs_to_spaces 属性即可,重启一下 Sublime Text3, 这样再次创建新的HTML文件就是默认两个空格缩进了.
{
"tab_size": 2,
"translate_tabs_to_spaces": true
}
其他类型文件设置思路同理.
边栏推荐
- Asp graduation project - based on C # +asp Design and implementation of enterprise investment value analysis system based on. Net + sqlserver (graduation thesis + program source code) -- enterprise in
- Study and exploration of Redux API implementation of Redux
- 用户身份标识与账号体系实践
- 系统架构师学习
- Virtual machines use host graphics cards (Hyper-V and wsl2)
- Nucleic acid scanning code registration experience (how to improve the correct character recognition rate of OCR)
- Parameter passing mode of C language (int x) (int *x) (int & x)
- 云原生管理实践:业务引领的DevOps持续交付体系
- How to contribute to openharmony
- (视频+图文)机器学习入门系列-第1章 引言
猜你喜欢

A structured random inactivation UNET for retinal vascular segmentation

Unity guidance system. Click the target object and prompt the text to change color to enter the next step

Data type of MySQL

STM32 application development practice tutorial: design and implementation of controllable LED water lamp

Senparc.Weixin.Sample.MP源码剖析

Flowable 基础篇2

Explanation of C value type and reference type

Summary of pit trampling records and solutions of data warehouse project

On contract testing

(Video + graphics) introduction to machine learning series - Chapter 1 Introduction
随机推荐
网络安全(5)
Unity guidance system. Click the target object and prompt the text to change color to enter the next step
40余岁的边缘老技术,是未来乏力还是掘地而起?
不用Swagger,那我用啥?
Qmainwindow details
(Video + graphics) introduction to machine learning series - Chapter 1 Introduction
Summary of introduction to unityshader (2): Beginner Level
Using logistic regression and neural network to deal with complex binary classification problems
【机器学习】朴素贝叶斯代码练习
【BERT-多标签文本分类实战】之一——实战项目总览
Manually build ABP framework from 0 -abp official complete solution and manually build simplified solution practice
vector实现
Pyqt5 rapid development and practice 6.1 three dimensions of good software & 6.2 layout management in pyqt5 & 6.3 absolute location layout of pyqt5
Outlook tutorial, how to create an electronic signature in outlook?
Virtual machines use host graphics cards (Hyper-V and wsl2)
What kind of framework is friendly to developers?
查看端口占用情况
浅谈契约测试
redis可视化工具读取数据乱码问题解决
Unity xchart3.0 basic usage quick start