@DrAzzy, as you may have noticed, I use in my code the continuation comma on the continuation line - especially when doing the object-oriented look of code - for which I IDE picks up an indentation fight as well. More over, because JS is such a micro element language, that I put physical micro statements on one line to build a logical statement or macro statement. IDE picks that up and aligns the next lines indentation with the second+ of the previous line...
This is all fine to get someone going with programming. With the screens getting wider and wider versus height, I cannot see enough code when putting just one micro thing on a line. Yes, I know, I can rotate the screen by 90 degrees and get it better for coding... (except for my laptop).
Therefore, an editor should have at least two modes: support for all who need or like a thinking editor... and for others, just a frugal support of indentation... similar to Eclipse - even though Eclipse has it's issues as well of meddling with the indentation (when copying).
But when just simple coding, it looks at the previous line and picks up the same indentation, and if a block has been opened, it adds a level. It even keeps the structure of the indentation which can be spaces and tabs, and it has a setting to use either tabs or spaces. If it gets to messy for me, I copy all I have into Eclipse or Textwrangler, do my advanced editing, and copy the whole thing back into IDE.
In an earlier post I suggested to make the IDE look at the file time stamp on disk when getting the focus (and on interval timeout) , and if it has changed it would ask in a pop-up to update to what is on disk. This way any editor could run, and IDE would be used to upload and access board. It's not the best solution but way better than copying back and forth.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@DrAzzy, as you may have noticed, I use in my code the continuation comma on the continuation line - especially when doing the object-oriented look of code - for which I IDE picks up an indentation fight as well. More over, because JS is such a micro element language, that I put physical micro statements on one line to build a logical statement or macro statement. IDE picks that up and aligns the next lines indentation with the second+ of the previous line...
This is all fine to get someone going with programming. With the screens getting wider and wider versus height, I cannot see enough code when putting just one micro thing on a line. Yes, I know, I can rotate the screen by 90 degrees and get it better for coding... (except for my laptop).
Therefore, an editor should have at least two modes: support for all who need or like a thinking editor... and for others, just a frugal support of indentation... similar to Eclipse - even though Eclipse has it's issues as well of meddling with the indentation (when copying).
But when just simple coding, it looks at the previous line and picks up the same indentation, and if a block has been opened, it adds a level. It even keeps the structure of the indentation which can be spaces and tabs, and it has a setting to use either tabs or spaces. If it gets to messy for me, I copy all I have into Eclipse or Textwrangler, do my advanced editing, and copy the whole thing back into IDE.
In an earlier post I suggested to make the IDE look at the file time stamp on disk when getting the focus (and on interval timeout) , and if it has changed it would ask in a pop-up to update to what is on disk. This way any editor could run, and IDE would be used to upload and access board. It's not the best solution but way better than copying back and forth.