4 ms·
I use an IDE that allows code folding. With opening braces on their own line, I get: function bob() { -------------- On the same line as the function,
by DanHulton 18y ago
I use an IDE that allows code folding. With opening braces on their own line, I get:
function bob()
{
--------------
On the same line as the function, I get:
function bob() {
----------------
Much cleaner. Plus, I don't worry about being able to match braces against each other, I have an IDE that does that for me. (When my cursor is against one brace, it's partner is highlighted.)
- lucumo 18y agoI absolutely LOVE code folding. Unfortunately, it seems many editors mess it up in some way :-( Kate, gedit and Geany (which I suppose is representative for all Scintilla-based editors) all expand every code block below the line your editing when you start a string. Really annoying. And sometimes they get confused about where the folding points are, which means you have to reload the file. I just wish there was a good GUI editor on Linux with good folding support :'(