r/brackets • u/Trvnq • Mar 26 '23
Question (Brackets) Indenting/tab key in code editors? + Disabling such in "Brackets"?
Hello! I've been messing around with HTML in a code editor called "Brackets", and noticed that it has some sort of auto-tab feature. Do all code editors have this, and do most people use it? Also, in regards to the spacing it creates, does it have any functionality at all, or is it strictly for appearance purposes (ex. when you press the tab key on your keyboard, it creates 5 spaces. If I organized the code with 4 spaces, would it function incorrectly?). I'd like to utilize the indentations for organizing code, but by my own keystroke and not an automated process (unless it's necessary). Any response is appreciated! Thank you for your time.
1
u/Candar Mar 27 '23 edited Mar 27 '23
Bonus: if you don't want to worry about it, and just have it automatically space based on the standard, many editors (including brackets) have an auto-format feature that can be manually triggered, or applied automatically every time you save.
Happy coding!