Note that there are some explanatory texts on larger screens.

plurals
  1. POIs there any way to stop Visual Studio from removing empty spaces after Ctrl+E+D
    primarykey
    data
    text
    <p>I've got a view that has the following code:</p> <pre><code>&lt;ul class="nav nav-tabs"&gt; &lt;li class="active"&gt;&lt;a href="#General" data-toggle="tab"&gt;&lt;i class="icon-home"&gt;&lt;/i&gt; General&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#Background" data-toggle="tab"&gt;&lt;i class="icon-picture"&gt;&lt;/i&gt; Background&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#FormContainer" data-toggle="tab"&gt;&lt;i class="icon-edit"&gt;&lt;/i&gt; Form Container&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#Logo" data-toggle="tab"&gt;&lt;i class="icon-picture"&gt;&lt;/i&gt; Logo&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#Colors" data-toggle="tab"&gt;&lt;i class="icon-tint"&gt;&lt;/i&gt; Colors&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#Fonts" data-toggle="tab"&gt;&lt;i class="icon-font"&gt;&lt;/i&gt; Fonts&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>The classes and html attributes are from Twitter Bootstrap but that's not important.</p> <p>After pressing Ctrl+E+D combination the following code gets changed:</p> <p><code>&lt;i class="icon-home"&gt;&lt;/i&gt; General</code> to <code>&lt;i class="icon-home"&gt;&lt;/i&gt;General</code></p> <p>I also tried putting an empty space between the <code>&lt;i&gt;</code> tags but it gets stripped out as well.</p> <p>This is effectively moving the tab title closer to the icon and although it's easy to fix I don't want to have to do it every time I benefit from auto code formatting in Visual Studio. </p> <p>Is there any way to change/tweak this behaviour?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload