News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

[Suggestion]"Find" function improvement

Started by SamT, June 19, 2007, 03:21:26 AM

Previous topic - Next topic

SamT

Hi all,

There are two funcitons implemented in C::B. When I right click a function call, I could have "Find declaration" and "Find implemention". These two functions are very useful to me. However, I can't find any shortcut related on these. Right click the mouse and select is the only way to use it. Can I add it in keyboard shortcut?

Furthermore, is it possible to have one or two panels in message box to show the function declaration(and/or implemention) automatically when the cursor moved to a function call? I used this function in "Source Insight" (one of a commercial editor) because I can't remember all of the function declaration during coding...



rickg22

That'd be a nice idea...please post it in the feature requests so it won't get lost in here. BTW, the find declaration / implementation belong to the Code Completion plugin. Code::Blocks "core" doesn't have the campability of parsing C++. Perhaps that's why it's poorly integrated.

jazzer

Quote from: SamT on June 19, 2007, 03:21:26 AM
Furthermore, is it possible to have one or two panels in message box to show the function declaration(and/or implemention) automatically when the cursor moved to a function call? I used this function in "Source Insight" (one of a commercial editor) because I can't remember all of the function declaration during coding...

This feature is also available in M$VS8 as "Code Definition Window", it shows definitions for anything under cursor (functions, types, enum values, macros etc), very convenient.

SamT

Quote from: rickg22 on June 19, 2007, 03:35:20 AM
That'd be a nice idea...please post it in the feature requests so it won't get lost in here.

How can I post a feature request in the system? Could somebody help on this? Thank you very much!

dmoore

#4
Quote from: SamT on June 19, 2007, 03:21:26 AM
Hi all,

There are two funcitons implemented in C::B. When I right click a function call, I could have "Find declaration" and "Find implemention". These two functions are very useful to me. However, I can't find any shortcut related on these. Right click the mouse and select is the only way to use it. Can I add it in keyboard shortcut?

hmm... the solution seems as simple as adding main menu options for some of the CC featues so that keybinder can bind to it... (a minor complication is getting the selected text before sending to the currently existing message handlers because m_lastkeyword, m_lastincludefile get filled when the context menus are created)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

dmoore

patch: http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2074&group_id=5358

(adds "insert class method decl/impl" to edit, "insert unimplemented methods" to edit, "find implementation" to search, "find decl" to search and "find include" to search -- they can be bound to keys with keybinder under editor settings -> keyboard shortcuts)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]