当前位置:网站首页>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个空格。下面是修改步骤,但修改后只对后来的键入有作用,如果修改前的缩进很混乱,那么使用图中所示的转换为空格缩进。
边栏推荐
- JS pure function
- MySQL learning records 12jdbc operation transactions
- Report on Market Research and investment prospects of China's silver powder industry (2022 Edition)
- 1204 character deletion operation (2)
- JVM performance tuning and practical basic theory - Part 1
- 根据csv文件某一列字符串中某个数字排序
- Modify the video name from the name mapping relationship in the table
- MySQL learning record 11jdbcstatement object, SQL injection problem and Preparedstatement object
- MySQL learning record 07 index (simple understanding)
- Tidb backup and recovery introduction
猜你喜欢
面向个性化需求的在线云数据库混合调优系统 | SIGMOD 2022入选论文解读
ESP系列引脚說明圖匯總
JVM performance tuning and practical basic theory - Part 1
Hcip day 16
Leetcode question brushing (5.28) hash table
[MySQL] database stored procedure and storage function clearance tutorial (full version)
Yyds dry goods inventory three JS source code interpretation eventdispatcher
On the day of resignation, jd.com deleted the database and ran away, and the programmer was sentenced
Verrouillage [MySQL]
Ruffian Heng embedded bimonthly, issue 49
随机推荐
Let the bullets fly for a while
Tidb backup and recovery introduction
2022.02.13 - 238. Maximum number of "balloons"
MySQL learning record 07 index (simple understanding)
China high purity silver nitrate Market Research and investment strategy report (2022 Edition)
LDAP application (4) Jenkins access
Image fusion -- challenges, opportunities and Countermeasures
华为云OBS文件上传下载工具类
IP lab, the first weekly recheck
游戏解包的危害及资源加密的重要性
[research materials] 2022 China yuancosmos white paper - Download attached
Chinese Remainder Theorem (Sun Tzu theorem) principle and template code
[cloud native] teach you how to build ferry open source work order system
[2022 广东省赛M] 拉格朗日插值 (多元函数极值 分治NTT)
1204 character deletion operation (2)
JVM performance tuning and practical basic theory - Part 1
Migrate data from SQL files to tidb
【MySQL】锁
被破解毁掉的国产游戏之光
Remote storage access authorization