Extension for quick #include management
-
Does anyone have any suggestions for an extension (or better yet a tool already in VS) that easily lets you add/remove #include statements without having to go to the top of the file to type them in? I come from Delphi, where we have GExperts which includes a tool such as this, and it is extremely useful. EDIT: I've tried IncludeToolbox, which seems pretty much useless.
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
-
Does anyone have any suggestions for an extension (or better yet a tool already in VS) that easily lets you add/remove #include statements without having to go to the top of the file to type them in? I come from Delphi, where we have GExperts which includes a tool such as this, and it is extremely useful. EDIT: I've tried IncludeToolbox, which seems pretty much useless.
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
I am not sure whether there is such a tool or not because most of the compilers are automatically optimized to add these for you, such as GCC adds
string
header file, if you are going to usestring
objects in your C++ programs. But they are the good features, because that doesn't mix up most of the things to the global scope. But I would personally prefer to not use such a tool because it may not know which object (from which header file) you want to include in your projects which would lead to some serious issues if not taken seriously before deployment. That is one of the reasons, namespaces etc are introduced to reduce the chance of mismatch and to reduce ambiguity but if things are to go south, you can mess things up a lot.The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
I am not sure whether there is such a tool or not because most of the compilers are automatically optimized to add these for you, such as GCC adds
string
header file, if you are going to usestring
objects in your C++ programs. But they are the good features, because that doesn't mix up most of the things to the global scope. But I would personally prefer to not use such a tool because it may not know which object (from which header file) you want to include in your projects which would lead to some serious issues if not taken seriously before deployment. That is one of the reasons, namespaces etc are introduced to reduce the chance of mismatch and to reduce ambiguity but if things are to go south, you can mess things up a lot.The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
I don't want it to add things automatically. I just want some utility to be able to add them manually without having to go to the top of the file and typing '#include "headernamehere"'. I don't want to have to scroll to the top of the file and then find my way back to where I was before. For example, the one in Delphi is super easy to use. You open with a keyboard shortcut and it shows you the list of files already included. You can start typing in the box and it auto-completes to any unit in your project or in the library path/VCL.
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin