NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Lines between blocks of code

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
counciler



Joined: 02 Feb 2010
Posts: 8

PostPosted: Tue Feb 02, 2010 7:43 pm    Post subject: Lines between blocks of code Reply with 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.
Back to top
JCDescy



Joined: 25 Nov 2009
Posts: 78

PostPosted: Tue Feb 02, 2010 8:07 pm    Post subject: Lines between blocks of code Reply with quote

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

PostPosted: Tue Feb 02, 2010 9:40 pm    Post subject: Reply with 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.
Back to top
JCDescy



Joined: 25 Nov 2009
Posts: 78

PostPosted: Tue Feb 02, 2010 11:32 pm    Post subject: Lines between blocks of code Reply with quote

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

PostPosted: Tue Feb 02, 2010 11:44 pm    Post subject: Lines between blocks of code Reply with quote

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

PostPosted: Tue Feb 02, 2010 11:58 pm    Post subject: Reply with quote




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

PostPosted: Wed Feb 03, 2010 12:04 am    Post subject: Re: Lines between blocks of code Reply with quote

JCDescy wrote:
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. =


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.





PostPosted: Wed Feb 03, 2010 9:16 pm    Post subject: Lines between blocks of code Reply with quote

counciler wrote:
Quote:
JCDescy wrote:
Quote:
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. =


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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo