Answer the question
In order to leave comments, you need to log in
How do you set tabs?
Hello. There was such a problem that I received a code that was previously tabulated with spaces. Because of this, I spend a lot of time on leveling all the nonsense.
All the time I do it with a regular tabulation. Are there any generally accepted code tab settings? I tried to google, I didn’t find it, they advise all sorts of nonsense.
-
Language - Go.
Answer the question
In order to leave comments, you need to log in
Modern (and not so modern) IDEs do it themselves.
And not only IDE, but also specialized programmer editors - they also know how.
There are no generally accepted ones. Some languages have traditions. Some companies have a code style guide.
Are you serious right now?
Go is almost the only one where this problem does not exist from the word "generally". Absolutely not.
The utility go fmt
does what it is strongly recommended to do for all sources written in this language. Able to work both with individual files and with entire directories of files. Everything is done completely automatically.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question