Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8860345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:14:55+00:00 2026-06-14T15:14:55+00:00

For years I’ve been storing XML documentation inline in my source code and putting

  • 0

For years I’ve been storing XML documentation inline in my source code and putting up with a “sea of green”, but I recently found out about the <include file="..." path="..."/> directive that can be used in Visual Studio to move documentation into it’s own XML file. Apparently intellisense will still work using this method, as will Sandcastle etc for help file generation.

I was just wondering how others are handling the “sea of green” issue where code gets buried under mounds of documentation? Do you just learn to live with it, or do you move the XML documentation into a separate file and use inline comments where code clarification might be needed?

Pros

  • The code file becomes a lot “cleaner”.
  • It makes it easier to browse the code and locate a specific code block/method.

Cons

  • It may make the code harder for strangers to grok if there is no inline documentation.
  • The absence of documentation may create a tendency to forget about the XML file and not update documentation when the code changes.

http://msdn.microsoft.com/en-us/library/9h8dy30z.aspx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:14:56+00:00Added an answer on June 14, 2026 at 3:14 pm

    I just leave it inline and use these Visual Studio – Command to collapse all sections of code? commands to collapse and expand code when I’m looking through large files. In this case I think the cons outweigh the pros. Unless you and your fellow developers are extremely diligent about documentation I don’t see that method working very well. Documentation is already lacking in most code bases I’ve seen, so increasing the difficulty of adding it, in my opinion, is a bad idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For years now I've been using a chat that has the following code to
For years I've been reading about XML and I have just not quite grokked
It's been years since I've done iOS, but I'm jumping back into it and
Years ago, I wrote a code template that took a few simple parameters (points)
For years i've been under the impression that with the advent of anonymous types
For years I've been coding C++ in the standard way, with class declarations in
Few years ago I found an implementation of the Singleton pattern in Python by
Years back I built a simple mail form that has been working like a
For years I have been using the DEBUG compiler constant in VB.NET to write
For years, maybe 10, I've been fascinated with cryptography. I read a book about

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.