User forums > General (but related to Code::Blocks)
Editor idea: F11 swap directly between method definition (.h) and body (.cpp)
Charon:
not directly connected with this, but i think it fits in this topic :
i think it would be pretty helpful to have a drop-down box in a toolbar at the top that shows every function in the actual file. when you select a function through this drop-down your cursor gets placed at the start of it. (if you manually place your cursor in a function the drop-down should change accordingly, in larger files its easy to see in which function you are this way)
although shift+f12 folds everything and shows me every function in a file this way, its not really a help. imagine you already folded some if-statements, pressing shift+f12 two times (fold and unfold again) destroys al your manual placed folds.
mh, i hope this makes sense :-D
kidmosey : is this a paintball mask from brass eagle?
kidmosey:
--- Quote from: Charon on July 12, 2006, 10:01:11 am ---i think it would be pretty helpful to have a drop-down box in a toolbar at the top that shows every function in the actual file. when you select a function through this drop-down your cursor gets placed at the start of it. (if you manually place your cursor in a function the drop-down should change accordingly, in larger files its easy to see in which function you are this way)
--- End quote ---
This seems like a good feature, but I wonder if it would be redundant in addition to the "Symbols" tab in the workspace panel (switch to flat mode).
--- Quote from: Charon on July 12, 2006, 10:01:11 am ---kidmosey : is this a paintball mask from brass eagle?
--- End quote ---
No, she had to kill like 80 people and become a convicted "hannibal" so she could maintain realism.
MB:
--- Quote from: kidmosey on July 12, 2006, 07:18:12 am ---First of all, why do you need to go to the method declaration? All that will do is tell you what you already know. Personally, I keep the header scrolled to the internal variables. If the IDE was constantly changing my cursor location, I would quickly get frustrated.
Doing something like this limits the usage of F11. Generally, it is not too difficult to scroll a header file to the correct method declaration, and in most cases you are interested in looking at various other methods instead of the one you are currently in.
And then would you make it visa versa, as well? That way would be even more frustrating, you move the cursor in the header file and you are suddenly somewhere else in your code, miles away from what you were working on.
Maybe if document switching gets changed so it goes to the previous document instead of round-robin, it might work (in which case I wouldn't use f11 anymore), but even then it should only be an option in the preferences.
--- End quote ---
I find the feature to be very useful and (as the posts shows) others do as well. So it should probably be an option to have it enabled or not. In the same way that other options can be switched on/off because people have different preferences.
Navigation
[0] Message Index
[*] Previous page
Go to full version