当前位置:网站首页>一般来讲,如果频繁出现inconsistent tab and space的报错
一般来讲,如果频繁出现inconsistent tab and space的报错
2022-07-02 10:28:00 【构建的乐趣】
就要考虑自己的代码缩进的规则是否一致,尤其是在移植别人的代码时候,有时候和自己原有的规则不一样,就会导致这样的错误。
解决方案:首先自己定好一个合适的规则,比如,我就是空四个空格缩进,那么就要到设置里把tab键缩进设置为4个空格。
别人的代码是单纯tab缩进,那么我就要利用批量替换把别人的tab给替换为四个空格。
边栏推荐
- OpenFOAM:lduMatrix&lduAddressing
- When tidb meets Flink: tidb efficiently enters the lake "new play" | tilaker team interview
- Story point vs. Human Sky
- 自定义事件,全局事件总线,消息订阅与发布,$nextTick
- P3008 [usaco11jan]roads and planes g (SPFA + SLF optimization)
- Dingtalk send message
- 为什么switch 的default后面要跟break?
- Unity skframework framework (XII), score scoring module
- OpenFOAM:lduMatrix&lduAddressing
- What are the classifications of SSL certificates? How to choose the appropriate SSL certificate?
猜你喜欢
随机推荐
故事點 vs. 人天
In 2021, the global styrene butadiene styrene (SBS) revenue was about $3722.7 million, and it is expected to reach $5679.6 million in 2028
MySQL45讲——学习极客时间MySQL实战45讲笔记—— 05 | 深入浅出索引(下)
Qt新项目_MyNotepad++
Halcon extract orange (Orange)
故事点 vs. 人天
Pointer from entry to advanced (1)
rxjs Observable 自定义 Operator 的开发技巧
Detailed collection of common MySQL commands
Unity skframework framework (XII), score scoring module
默认插槽,具名插槽,作用域插槽
What are the classifications of SSL certificates? How to choose the appropriate SSL certificate?
mysql ---- Oracle中的rownum转换成MySQL
万物生长大会在杭召开,当贝入选2022中国未来独角兽TOP100榜单
Partner cloud form strong upgrade! Pro version, more extraordinary!
你知道Oracle的数据文件大小有上限么?
Three talking about exception -- error handling
Use of UIC in QT
Selenium installing selenium in pycharm
uniapp小程序 subPackages分包配置