NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Text search/replac - limit scope to current method/class.


Joined: 30 Jun 2009
Posts: 79
Reply with quote
Would be nice to be able to limit search/replace scope to current function/method or class.

Thanks!
View user's profileFind all posts by temuriSend private message


Joined: 06 Jul 2009
Posts: 72
Reply with quote
You can do this already..

Place cursor just after opening bracket.. use 'find matching bracket' function (shortcut or menu item).. then so normal search / replace.. the default settings selected in the search window will default to the current selection only. This is very easily and quickly doable for functions, methods and classes.

In fact, using this method gives you far more flexibility than what you've specifically asked for.. as you could easily select text and search within a switch statement, or a specific case statement, or a conditional, etc etc etc.



Cheers..

Ian
View user's profileFind all posts by Ian.HSend private message


Joined: 30 Jun 2009
Posts: 79
Reply with quote
Ian,

The point is to be able to search for text within current scope without jumping through hoops. What if opening/closing brace is nowhere in sight?

Temuri
View user's profileFind all posts by temuriSend private message


Joined: 07 May 2014
Posts: 64
Reply with quote
@dmitri

Can we please have this improvement?
View user's profileFind all posts by temuri416Send private message
Text search/replac - limit scope to current method/class.
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
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic