Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. Extension for quick #include management

Extension for quick #include management

Scheduled Pinned Locked Moved Visual Studio
delphivisual-studiocomquestion
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Colin Mullikin
    wrote on last edited by
    #1

    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

    A 1 Reply Last reply
    0
    • C 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

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      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 use string 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 !~

      C 1 Reply Last reply
      0
      • A Afzaal Ahmad Zeeshan

        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 use string 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 !~

        C Offline
        C Offline
        Colin Mullikin
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups