当前位置:网站首页>一般来讲,如果频繁出现inconsistent tab and space的报错
一般来讲,如果频繁出现inconsistent tab and space的报错
2022-07-02 10:28:00 【构建的乐趣】
就要考虑自己的代码缩进的规则是否一致,尤其是在移植别人的代码时候,有时候和自己原有的规则不一样,就会导致这样的错误。
解决方案:首先自己定好一个合适的规则,比如,我就是空四个空格缩进,那么就要到设置里把tab键缩进设置为4个空格。
别人的代码是单纯tab缩进,那么我就要利用批量替换把别人的tab给替换为四个空格。
边栏推荐
- 三谈exception——错误处理
- 不会看器件手册的工程师不是个好厨子
- 瀏覽器驅動的下載
- Qt原代码基本知识
- Story point vs. Human Sky
- QT - make a simple calculator - realize four operations
- Origin绘制热重TG和微分热重DTG曲线
- On flow delivery between microservices
- Countermeasures for the failure of MMPV billing period caused by negative inventory of materials in SAP mm
- Qt新建项目
猜你喜欢
Error: eacces: permission denied, access to "/usr/lib/node_modules"
基于ssm+jsp框架实现的学生选课信息管理系统【源码+数据库】
[technology development-22]: rapid overview of the application and development of network and communication technology-2-communication Technology
[document tree, setting] font becomes smaller
代码实现MNLM
Will your sleep service dream of the extra bookinfo on the service network
Why is the default of switch followed by break?
Use bloc to build a page instance of shutter
Codeforces Round #803 (Div. 2)(A~D)
QT new project_ MyNotepad++
随机推荐
[document tree, setting] font becomes smaller
Which do you choose between Alibaba P7 with an annual salary of 900000 and deputy department level cadres?
[technology development-22]: rapid overview of the application and development of network and communication technology-2-communication Technology
[USACO05JAN]Watchcow S(欧拉回路)
Development skills of rxjs observable custom operator
P1908 逆序对
P1042 [NOIP2003 普及组] 乒乓球
Design of non main lamp: how to make intelligent lighting more "intelligent"?
P1347 sorting (topology + SPFA judgment ring or topology [inner judgment ring])
Halcon extract orange (Orange)
The 29 year old programmer in Shanghai was sentenced to 10 months for "deleting the database and running away" on the day of his resignation!
Explanation: here is your UFO, Goldbach conjecture
千元投影小明Q1 Pro和极米NEW Play谁更好?和哈趣K1比哪款配置更高?
[技术发展-22]:网络与通信技术的应用与发展快速概览-2- 通信技术
QT how to set fixed size
[youcans' image processing learning course] general contents
On flow delivery between microservices
当贝投影4K激光投影X3 Pro获得一致好评:万元投影仪首选
Codeforces Round #803 (Div. 2)(A~D)
How to use SAP's metadata framework (MDF) to build custom business rules?