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 7816725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:58:21+00:00 2026-06-02T05:58:21+00:00

Are there any tools for VS that allow developers to view code according to

  • 0

Are there any tools for VS that allow developers to view code according to their style desires?

For instance, some developers like K&R style brackets while others like ANSI style.
The backing code file can be in whatever format it wants, but the viewed source needs to be in the developer style.

  • 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-02T05:58:22+00:00Added an answer on June 2, 2026 at 5:58 am

    It can be done. You just have to set the indentation options in the Visual Studio options. Then when a developer loads a file, he can just select “Reformat File” from the Edit menu (I think it’s in one of the advanced sub-menus) or go to the bottom of the file, remove the ending brace, and re-add it. The file will automatically be reformatted.

    That said, this is a really bad idea. If you’re using source control, then every time a developer checks out a file that was previously checked in by somebody who used a different formatting convention, that file is going to show as modified. So you’ll have the potential for a lot of spurious checkins, and even if you somehow avoid the spurious checkins you have the problem that a developer might change one line of code, but a diff is going to show LOTS of changes because of all the formatting changes.

    That’s not the only problem. Let’s say that a tester reports an error and a stack trace that says an exception occurred on line 263 of some module. You have to be sure to get the latest code from the source repository and keep it in the format that it was last compiled in. Otherwise, line 263 where the error was probably won’t be line 263 in your editor.

    Tell your developers to decide on ONE indentation style. Anything else is going to cause you no end of grief.

    By the way, I gave this some serious thought a few years back and even wrote about it in Source Control and Formatting Standards. I thought it was a good idea provided I could build the tools to do the automatic conversion to canonical format. At the time, I didn’t take into account the “where is line 263” problem. That one’s a killer, and the tools to do the automatic conversion are no picnic, either. All in all, I decided that it’s much easier and more reliable to just settle on a single style. It takes only a few days to get accustomed to an unfamiliar style.

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

Sidebar

Related Questions

Are there any open source or commercial tools available that allow for text fragment
Are there any tools that display output of a line of code such as
Are there any tools available that will let me rebase in git style an
Are there any automated tools that will parse through XAML code and clean out
Is there any magic tools i can use to scan source code that was
Are there any tools/Firefox plugins that will allow you to drag elements (divs, images
Are there any tools that allow to create the necessary files required to add
Are there any tools for JUnit or Java practises that allow for boundary case
Are there any tools that would allow me to easily create an interactive architectural
Are there any tools that would allow me to monitor memory usage and leaks?

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.