It is currently Sat May 25, 2013 10:56 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Highlight all variable occurences in IDE
PostPosted: Sat Nov 12, 2011 2:09 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 578
Location: germany
In many other editors, all variables like the one the cursor currently is on, are highlighted. This helps to find all places where this variable is used.

Image

The orange arrow shows the cursor over the $c variable (yes, it is PHP). The other occurences of this variable are highlighted using a light yellow background. This is very helpful if you like to refactor or if you are searching bugs.

BTW, this is PhpED from Nusphere (http://www.nusphere.com/products/phped.htm).

Kukulkan

_________________
When somebody says "Expect the unexpected" slap them in the face and say" You didn’t expect that, did you?"


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Sat Nov 12, 2011 2:15 pm 
Offline
Addict
Addict

Joined: Tue Feb 22, 2011 1:16 pm
Posts: 1461
+1

_________________
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Sat Nov 12, 2011 2:26 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 684
Location: Cologne / Germany
That would be very useful!

Greetings ... Kiffi

_________________
Sorry for my weird english


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Sat Nov 12, 2011 4:18 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Sep 15, 2003 5:55 am
Posts: 929
i agree, this is a killer feature. :)

viewtopic.php?f=3&t=41842

c ya,
nco2k

_________________
If OSVersion() = #PB_OS_Windows_ME : End : EndIf


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Sun Nov 13, 2011 1:38 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Dec 08, 2009 8:34 pm
Posts: 161
Location: United Kingdom
It should be an option.

_________________
C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to write code without it. We have not used goto in this book. -- K&R (2nd Ed.) : Page 65


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Sun Nov 13, 2011 1:58 pm 
Offline
Addict
Addict

Joined: Thu Nov 01, 2007 5:37 pm
Posts: 1568
Location: Germany
I like this feature very much in Notepad++, although it could be improved to (optionally) not highlight in comments, strings etc.


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Sun Nov 13, 2011 3:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jan 21, 2011 8:25 am
Posts: 549
Blood wrote:
It should be an option.

Definitely. It's actually one of the first "features" I disable in other editors because
it annoys me and doesn't have any purpose for me whatsoever. :wink:

_________________
Image
ImageImageImage
"You can disagree with me as much as you want, but during this talk, by definition, anybody who disagrees is stupid and ugly."
- Linus Torvalds


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Sun Nov 13, 2011 10:01 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Tue Dec 08, 2009 8:34 pm
Posts: 161
Location: United Kingdom
Shield wrote:
Blood wrote:
It should be an option.

Definitely. It's actually one of the first "features" I disable in other editors because
it annoys me and doesn't have any purpose for me whatsoever. :wink:

Me too.

_________________
C provides the infinitely-abusable goto statement, and labels to branch to. Formally, the goto is never necessary, and in practice it is almost always easy to write code without it. We have not used goto in this book. -- K&R (2nd Ed.) : Page 65


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Wed Nov 16, 2011 8:48 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 578
Location: germany
nco2k wrote:
i agree, this is a killer feature. :)

viewtopic.php?f=3&t=41842

c ya,
nco2k

Oh, I missed this. Sorry. But now it is mentioned twice :D

Surely, this must be an option that can get switched on and off.

Kukulkan

_________________
When somebody says "Expect the unexpected" slap them in the face and say" You didn’t expect that, did you?"


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Wed Nov 16, 2011 4:35 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 794
+1 for adding this feature. It is one of the big reasons I use Notepad++.


Top
 Profile  
 
 Post subject: Re: Highlight all variable occurences in IDE
PostPosted: Wed May 16, 2012 1:16 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 18, 2004 11:56 am
Posts: 277
Location: TPM
+1

_________________
Go, tell it on the mountains.


Top
 Profile  
 
 Post subject: Highlight all variable occurences in IDE
PostPosted: Fri Jan 18, 2013 11:30 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Dec 18, 2004 11:56 am
Posts: 277
Location: TPM
actually this feature would perfectly work together with another feature: a birds eye view (on the right to the vertical scrollbar) which shows you all occurrences in the source. Would also be cool for ctrl-f.

_________________
Go, tell it on the mountains.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye