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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:04:59+00:00 2026-06-11T06:04:59+00:00

In Visual Studio 2010, is it possible to change the formatting of HTML documents

  • 0

In Visual Studio 2010, is it possible to change the formatting of HTML documents such that it doesn’t indent for <asp:*> sections? I’m trying to achieve this:

<asp:content contentplaceholderid="content" runat="server">
<!DOCTYPE html>
<html>
    <head>
    ...
    </body>
</html>
</asp:content>

Rather than this:

<asp:content contentplaceholderid="content" runat="server">
    <!DOCTYPE html>
    <html>
        <head>..</head>
        <body>..</body>
    </html>
</asp:content>

So that what eventually gets served to the browser has nothing before the <!DOCTYPE html>:

<!DOCTYPE html>
<html>
    <head>..</head>
    <body>..</body>
</html>

Which is just neater, and I think probably less error-prone.

I know I could just manually format the document and then never use the auto-format option (ctrl+k ctrl+d), but that’s just annoying.

  • 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-11T06:05:00+00:00Added an answer on June 11, 2026 at 6:05 am

    For specific ASP tags

    Tools -> Options -> Text Editor -> HTML -> Formatting -> then hit the button marked ‘Tag Specific options’ on the right pane -> then chose ASP.Net Controls on the left pane. Then choose the tag you wish to modify (asp:placeholder) and uncheck the checkbox marked ‘Indent contents’.

    For all server tags

    In the “Tag specific options” windows, under “Default Settings” select “Server tag supports contents” and uncheck “Indent contents”.

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

Sidebar

Related Questions

Is it possible to change the template in Visual Studio 2010 so that the
Is it possible to change the color of intellisense in Visual Studio 2010. As
I'm using Visual Studio 2010 RC. Would it be possible that after doing my
I'm trying to create an Outlook 2010 Add-in with Visual Studio. Is it possible
Is it possible to change a setting somewhere in Visual Studio (2008 or 2010,
Is it possible to create a Visual Studio (2010) macro to change the keyboard
Is it possible? I notice that the Gridview (Visual Studio 2010 Web Application) only
Is it possible to connect Visual Studio 2010 Professional edition to TFS (project hosted
Is possible create an extension for SQL Management Studio in Visual Studio 2010? Visual
Is it possible to disable RVO (return value optimization) in Visual Studio 2010? Setting

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.