当前位置:网站首页>Indentation of tabs and spaces when writing programs for sublime text

Indentation of tabs and spaces when writing programs for sublime text

2022-07-06 08:33:00 MAR-Sky

Reference resources :https://blog.csdn.net/fjnjxr/article/details/79635504

Set indented Tab=4 A space

Problem description , The following figure shows a simple test program , Found that there will be compilation errors ,IndentationError: unindent does not match any outer indentation level, The general meaning is that the indentation is not aligned and matched .sublime This situation is often encountered in , In the reference link is the modification method of the English version , Record the modification method used ,

 Insert picture description here

Modify the process and analysis

analysis , Change the indent to Four character space indented , Because it's set to Tab If you type four spaces, you will still report an error , But if it is set to blank ,Tab Key meeting Auto convert to 4 A space . Here are the modification steps , But the modification only works for later typing , If the indentation before modification is messy , Then use the conversion shown in the figure to indent into spaces .
 Insert picture description here


原网站

版权声明
本文为[MAR-Sky]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060827241376.html