当前位置:网站首页>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
}
其他类型文件设置思路同理.
边栏推荐
- AxureRP原型设计 快速开始
- 【BERT-多标签文本分类实战】之一——实战项目总览
- [Yunzhu co creation] [hcsd live broadcast] teach the interview tips of big companies in person
- mysql怎么换成中文
- Qmainwindow details
- Evaluation index of machine learning classification model and implementation of sklearn code
- Nutnews developed based on arkui ETS
- Unity xchart3.0 basic usage quick start
- Shutter gradient
- C# 使用RestSharp库实现POST请求
猜你喜欢

不用Swagger,那我用啥?

Floweable advanced

Discussion on the integration of storage and calculation and the calculation in storage

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

How to introduce your project experience?

Using logistic regression and neural network to deal with complex binary classification problems

Random number setting and reference between parameters

使用cpolar发布树莓派网页(cpolar功能的完善)

如何介绍自己的项目经验?

怎样查询快递物流筛选出无信息单号删除或者复制
随机推荐
Unity guidance system. Click the target object and prompt the text to change color to enter the next step
40余岁的边缘老技术,是未来乏力还是掘地而起?
Use cpolar to publish raspberry pie web pages (improvement of cpolar function)
36. JS animation
Flowable 基础篇1
网络安全(5)
C # use restsharp library to realize post request
Configuration file settings for remote connection to Windows version server redis
PyQt5快速开发与实战 6.4 QBoxLayout(框布局)
C# 值类型和引用类型讲解
先序遍历/后序遍历确定树的大致形态
机器学习之分类模型评估指标及sklearn代码实现
How does alternates achieve high-performance publish and subscribe?
Custom configuration
【机器学习】朴素贝叶斯代码练习
存算一体与存内计算计算杂谈
mysql怎么换成中文
How to introduce your project experience?
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
远程连接windows版本服务器redis的配置文件设置