C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

editor that offers a search only in cursor scope

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Gumby
Guest





PostPosted: Mon Feb 28, 2005 2:46 am    Post subject: editor that offers a search only in cursor scope Reply with quote




Does anyone know of an c++ code editor with this feature,
supposing the cursor is inside functionX(), I'd like to
be able to have the search for a string to look only
in the scope of the { }. For example, if I search for
"variablename" and the cursor is in functionX I only
want the search to find the one in functionX and not
the one in functionY. But if the cursor is outside any
function, then it should search in file scope (anywhere in
file). Any editors do that?


void
Class::functionX()
{
int func = 0;
float size;
.........

int variablename;
....
}

void
Class::functionY()
{
int variablename = 0;
........

}
Mark
Back to top
Micha
Guest





PostPosted: Mon Feb 28, 2005 9:23 am    Post subject: Re: editor that offers a search only in cursor scope Reply with quote



Gumby wrote:

Quote:

Does anyone know of an c++ code editor with this feature,
supposing the cursor is inside functionX(), I'd like to
be able to have the search for a string to look only
in the scope of the { }. For example, if I search for
"variablename" and the cursor is in functionX I only
want the search to find the one in functionX and not
the one in functionY. But if the cursor is outside any
function, then it should search in file scope (anywhere in
file). Any editors do that?

in VIM if the cursor is on an identifiere and you type gd (go definition) it
show the first use, local top the function and if you type gD it looks for
it globally.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.