当前位置:网站首页>sublime text的编写程序时的Tab和空格缩进问题
sublime text的编写程序时的Tab和空格缩进问题
2022-07-06 08:27:00 【MAR-Sky】
参考:https://blog.csdn.net/fjnjxr/article/details/79635504
设置缩进的Tab=4个空格
问题描述,下图中是一个简单的测试程序,发现会出现编译错误,IndentationError: unindent does not match any outer indentation level,大概意思就是缩进没有对齐匹配。sublime中经常遇到这种情况,参考链接中的是英文版的修改方式,自己记录一下使用的修改方式,

修改过程和分析
分析,将缩进改为四个字符的空格缩进,因为设置成Tab缩进的话若键入四个空格还是会报错,但设置成空格的话,Tab键会自动转换成4个空格。下面是修改步骤,但修改后只对后来的键入有作用,如果修改前的缩进很混乱,那么使用图中所示的转换为空格缩进。
边栏推荐
猜你喜欢

Pointer advanced --- pointer array, array pointer

matplotlib. Widgets are easy to use

MySQL learning record 10getting started with JDBC

指针进阶---指针数组,数组指针

ESP系列引脚说明图汇总

根据csv文件某一列字符串中某个数字排序
![[MySQL] log](/img/e9/1617122888c096cf6aba2bdb88f0ef.png)
[MySQL] log

leetcode刷题 (5.28) 哈希表

Personalized online cloud database hybrid optimization system | SIGMOD 2022 selected papers interpretation

Beijing invitation media
随机推荐
Verrouillage [MySQL]
Colorlog combined with logging to print colored logs
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
Wincc7.5 download and installation tutorial (win10 system)
MySQL learning record 07 index (simple understanding)
被破解毁掉的国产游戏之光
[brush questions] top101 must be brushed in the interview of niuke.com
2022.02.13 - NC003. Design LRU cache structure
2. File operation - write
LDAP application (4) Jenkins access
Hungry for 4 years + Ali for 2 years: some conclusions and Thoughts on the road of research and development
堆排序详解
China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
C language - bit segment
Online yaml to CSV tool
Upgrade tidb operator
Use br to back up tidb cluster data to S3 compatible storage
指针进阶---指针数组,数组指针
MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
2022.02.13 - 238. Maximum number of "balloons"