A quick addon that replaces Visual Studio's C/C++ class/function dropdown bar with a bar inspired by XCode's file navigation system. The new bar simply lists all the function definitions inside the file. The pattern matching I'm using to generate the function list is more robust than that used by the default visual studio bar, which seems to be easily confused by macros and namespaces. The addon also adds a function-list dropdown bar to .lua files (a feature that works best if you also have Shaun'sLua addon installed). I've attempted to provide a feature similar to XCode's #pragma mark -- you can access it by writing inline comments that start with a double bang -- i.e., if you write //!! File IO "File IO" will appear in the dropdown bar. You can use empty double bang comments to add a seperator to the list. So, for example //!! inserts a blank line into the dropdown list. My source code an be downloaded here. As always, bug fixes are appreciated :) Unlike XCode's navigation bar, I'm not adding entries for macro definitions, enumerations or function prototypes. This is mostly by design -- I like a relatively uncluttered bar. However, if your preferences are different, adding some additional pattern matching logic to the code to increase the number of entry types should be straightforward. (As of update 0.46, I'm adding adding entries for C++ class definitions, along with global Lua tables.) |