Блог пользователя Not-Afraid

Автор Not-Afraid, история, 6 лет назад, По-английски

I use sublime text and in it i use tab_width-4, but when i submit the code on Codeforces it's indentation changes to 8 and makes the code look ugly like this. I tried turning editor mode off while submitting on codeforces and also tried changing tab width while submitting but it didn't helped.
Can anyone help me how can i fix this bcz i hate looking at my own ugly code with messy indentation?
UPD : using "translate_tabs_to_spaces": true worked for me. Thank you everyone for the help.

  • Проголосовать: нравится
  • +15
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Seems you are submitting tabs, and would like to have them converted to spaces. Configuration howto

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

setting : "translate_tabs_to_spaces": true

»
6 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

Go to Preference.sublime-settings — User and then add a property "tab_size": 4

»
6 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Thanks for the blog Not-Afraid, my issue also got resolved.