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

  • Home
  • SEARCH
  • 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 6193665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:09:36+00:00 2026-05-24T03:09:36+00:00

When I press format whole document in Visual studio, some tages like h1 and

  • 0

When I press format whole document in Visual studio, some tages like “h1” and “p” got split over more then one row

<h1>
    <%# something %></h1>

What I want to happen is that everything stays at one row.

<h1><%# something %></h1>

I checked out the formatting settings under Tools > Options > Text Editor > HTML > Format > Tag Specific Options for h1 and p its set to “before and after”, also the default settings are set this option.

Anyone can tell me how to prevent this the extra line breaks?

  • 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-05-24T03:09:36+00:00Added an answer on May 24, 2026 at 3:09 am

    Without looking into VS, I would try adding a new tag under Client Html Tags.
    Add the new tag “%” and set the formatting, no closing tags and no line-breaks.

    I think this should work for you in format

    <h1><% something %></h1>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I press F5 in Visual Studio 2008, I want Google Chrome launched as
I have a Visual Studio 2008 addin that when I press a certain hotkey,
For example, what Wordpad did when I press Ctrl+C? It places many different format
I am working on mocking some external dependencies and am having trouble with one
It's another Visual Studio 2008 HTML formatting question...I think I have either found a
With MonoDevelop C#, when I press the Format Code button (CTRL+SHIFT+F) the IDE will
Hello, i would like to know shortcut key to format my xml tag for
Some sample, straight forward gtk2 within-main-loop I'm currently trying to add code at key-press-event
I have this in my .vimrc set formatprg=astyle I can press gggqG to format
see by writting some code here we select that code & press ctrl +

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.