I personally believe that the general practice of javascript coding is as follows:
function(){
is ugly and annoying. Therefore, when I encode javascript, I like to format it like this:
function() {
I have never had this problem with notepad ++ before, but after my last installation, the program feels the need to remove my tab / indent every time I try to defer my curly braces, so I need to go back and click the tab again after both dialed. Does anyone know which preference option can fix this?
I found that if I go to Settings> Settings> MISC. and then uncheck the box that says "auto-indent", the program will stop deleting my indentation, but it also starts to change completely when I start a new line.
Just to summarize again. If my previous line of code was indented 3 times, I want it to still be indented 3 times when I press enter / return. I also want this to be when I indent my braces so that they stay where I indented them and not let go of one indent.
I spent a lot of time looking for this and didnโt find out anything, and I canโt figure it out by throwing preferences. If you could help me solve this problem, that would be greatly appreciated.
source share