| View previous topic :: View next topic |
| Author |
Message |
counciler
Joined: 02 Feb 2010 Posts: 8
|
Posted: Tue Feb 02, 2010 7:43 pm Post subject: Lines between blocks of code |
|
|
| In Notepad++ there's this neat little feature where in between a {} code block it'll add a line to the left of it showing the beginning and end of it. I was wondering if there was any way to do this in Netbeans. |
|
| Back to top |
|
 |
JCDescy
Joined: 25 Nov 2009 Posts: 78
|
Posted: Tue Feb 02, 2010 8:07 pm Post subject: Lines between blocks of code |
|
|
Am 02.02.2010 um 20:43 schrieb counciler:
| Quote: | In Notepad++ there's this neat little feature where in between a {} code block it'll add a line to the left of it showing the beginning and end of it. I was wondering if there was any way to do this in Netbeans.
|
Really I don't know how to change this, but it seems to be the default in my version of Netbeans, which is 6.8 on Mac OS X SL. What version do you have? |
|
| Back to top |
|
 |
counciler
Joined: 02 Feb 2010 Posts: 8
|
Posted: Tue Feb 02, 2010 9:40 pm Post subject: |
|
|
I'm not talking about the line that collapses the code. Notepadd++ has that, but it also has another line right next to the code that distinguishes the blocks more clearly. If you line up your braces it'll be right below and right above them at the beginning and end of the code.
In speaking of the collapsing feature, is there any way to extend that to collapse an entire class? I'm new to Java, so I'm not sure if this is even a useful feature as I'm sure you can't define more than one class in a file. But this is also another feature that Notepad++ has. |
|
| Back to top |
|
 |
JCDescy
Joined: 25 Nov 2009 Posts: 78
|
Posted: Tue Feb 02, 2010 11:32 pm Post subject: Lines between blocks of code |
|
|
Well, as I have never used Notepad++ I could only guess what you mean. Seems like I guessed wrong. Sorry, I have no idea then. Screenshot might be helpful.
Am 02.02.2010 um 22:40 schrieb counciler:
| Quote: | I'm not talking about the line that collapses the code. Notepadd++ has that, but it also has another line right next to the code that distinguishes the blocks more clearly. If you line up your braces it'll be right below and right above them at the beginning and end of the code.
In speaking of the collapsing feature, is there any way to extend that to collapse an entire class? I'm new to Java, so I'm not sure if this is even a useful feature as I'm sure you can't define more than one class in a file. But this is also another feature that Notepad++ has.
|
John C. Descy
IT-Experte
Sebastianstra |
|
| Back to top |
|
 |
JCDescy
Joined: 25 Nov 2009 Posts: 78
|
Posted: Tue Feb 02, 2010 11:44 pm Post subject: Lines between blocks of code |
|
|
Am 03.02.2010 um 00:32 schrieb john:
| Quote: | Well, as I have never used Notepad++ I could only guess what you mean.
|
You mean indention guides? The little dotted line descending from the curly braces in the bottom right of this pic: http://notepad-plus.sourceforge.net/commun/screenshots/scrsh_multiViewCloneMode.gif
I haven't found them in Netbeans, sorry. = |
|
| Back to top |
|
 |
counciler
Joined: 02 Feb 2010 Posts: 8
|
Posted: Tue Feb 02, 2010 11:58 pm Post subject: |
|
|
Hehe, the comments probably don't make much sense, so ignore those. I did a lot of editing to the code but didn't edit the comments. The code itself is also unimportant, but what's important is those lines between the brackets. If I could duplicate that in Netbeans that'd be awesome. Anyone got a clue? |
|
| Back to top |
|
 |
counciler
Joined: 02 Feb 2010 Posts: 8
|
Posted: Wed Feb 03, 2010 12:04 am Post subject: Re: Lines between blocks of code |
|
|
Yeah, I guess they're indentation marks. I really like that feature of notepad++. But alas, even if I can't get it in netbeans, it still offers a lot more than notepad++. I'll still await anyone's insight on this. Thanks. |
|
| Back to top |
|
 |
Mike Riley Posted via mailing list.
|
Posted: Wed Feb 03, 2010 9:16 pm Post subject: Lines between blocks of code |
|
|
counciler wrote:
| Quote: | JCDescy wrote:
Yeah, I guess they're indentation marks. I really like that feature of notepad++. But alas, even if I can't get it in netbeans, it still offers a lot more than notepad++. I'll still await anyone's insight on this. Thanks.
|
Many years ago I had a program called Print Source that did those same
lines for code listings. They are very useful for lining things up,
especially when using smaller indents than 4, as some shops mandate (like
the C++ code I am working on now, which uses indents of 2).
I would file a request for enhancement to have that feature added, as I do
not believe it exists yet.
Mike |
|
| Back to top |
|
 |
|