4 ms·
Tabs vs Spaces Tabs are always correct, IF spaces are never used instead. One tab, for one level of indent. Adjust to preference. Alas, I don't think there'
by mjevans 2y ago
Tabs vs Spaces
Tabs are always correct, IF spaces are never used instead. One tab, for one level of indent. Adjust to preference.
Alas, I don't think there's a standard way of specifying...
// kate: space-indent off; indent-width 8; tab-width 8; mixedindent off; indent-mode tab;
Similarly, // comments should be preferred, but /* comments */ are acceptable at the top of large function blocks for large blobs of comments. Judicious / sparing use as the key idea to make it worth the exceptions if commenting out large blocks during tests or refactors.
- jdougan 2y agoThere is always .editorconfig [1] to setup indent if you have a directory of files. In places where it really matters (Python) I'll always comment with what I've used. [1] https://editorconfig.org/ https://editorconfig.org/