473,757 Members | 2,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

editor that offers a search only in cursor scope


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
"variablena me" 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::function X()
{
int func = 0;
float size;
.........

int variablename;
....
}

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

}
Mark
Jul 23 '05 #1
1 1257
Gumby wrote:

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
"variablena me" 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.

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1058
by: Gabriel Cooper | last post by:
Usually when I access db search results it's something like this: cursor.execute("select A1,A2,A3,A4 from B where C") for (a1,a2,a3,a4) in cursor.fetchall(): stuff() But sometimes the point at which I use the data returned is not with the search, and so having the ability to access the results as a dictionary is more useful. I know that with MySQLdb I can open the connection and have it return a dictionary, but when only one search...
3
5033
by: mark4asp | last post by:
Hello Guys, I find myself having to format a lot of subscript & superscript characters from text which is being HTMLed. This was originally OCRed but the OCRed work was not saved as HTML due to the vast amount of garbage HTML tags written to preserve formatting. I am looking for either: (a) a tool that removes nearly ALL formatting The only thing I want left are
0
2155
by: 356523600 | last post by:
HTML To PHP Converter 4.2.1.8 Free download Get more for less ... HTML To PHP Converter 4.2.1.8 Get more for less! With a new version of HTML To PHP Converter 4, we've dropped the price and given you more! www.soft30.com/softdown-160-4268.htm - 33k - 10 Oct 2005 - Cached - Similar pages PHP Editor 2.22 - Soft.com PHP Editor 2.22. ... The PHP Editor have some good features: ... Integration with
1
1150
by: Nitin Kapoor | last post by:
Hello everyone, I have an editor written in C language now I have to make further addition to it in order to provide multi language support. In order to implement Thai language I need to control the cursor positing , I don't know if some one here has worked with Thai language or not but in Thai language 1 display cell can be made of 1-3 characters so my cursor should move accordingly.
3
2098
by: Mark A | last post by:
In the DB2 Admin Client (8.2.4), when the results of a query are displayed in the grid that looks like a spreadsheet (using Command Editor or double click on table name in Control Center). The data in this grid is updatable. When a cursor is first placed on one of the columns, no update takes place. When the cursor is then merely moved to another row (any column) the previous row is updated, even if it was not changed. If the user does...
11
1847
by: Xah Lee | last post by:
Of interest: • The Semicolon Wars, by Brian Hayes. 2006. http://www.americanscientist.org/template/AssetDetail/assetid/51982 in conjunction to this article, i recommend: • Software Needs Philosophers, by Steve Yegge, 2006 http://xahlee.org/Periodic_dosage_dir/_p/software_phil.html
56
3263
by: Omar | last post by:
I'd love the perfect editor that would be: a) free b) enable me to drag and drop code snippets from a sort of browser into the code c) can run programs right from within d) can edit
49
1631
by: W. Watson | last post by:
Is there an editor that allows one to position to put the cursor and then by pushing some button goes to the end of the def? -- Wayne Watson (Nevada City, CA) Web Page: <speckledwithStars.net>
0
1274
by: klia | last post by:
Hey guys; I am trying to develop a tiny program using python to search inside sqlite database with file extension is .db in which the program will ask users to enter their search query and base on that it will retrieve the result But I need the program to have some smartness in search mechanism in which the program will guess that the user is looking for these key words in the database. so far i came up with this but the search ain't...
0
9487
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9297
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9904
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9735
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8736
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5324
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2697
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.