Note that there are some explanatory texts on larger screens.

plurals
  1. POExtra spaces added to classes name with Sublime Text 2
    text
    copied!<p>I have a weird problem with Sublime Text 2.</p> <p>When I write CSS classes, it add automatically a space who is associated to the class name and not interpret like a simple separator. This arrive after I put the bracket and press tab (shortcut for the autocompletion).</p> <p>So when I write this class to my HTML, it didn't works because of the extra padding added (and I am looking for always for a long time, where the error came from, and it's only about this space added to the class name).</p> <p>I create a jsfiddle and copy/paste little code from my sublime text 2 : <a href="http://jsfiddle.net/SB3KV/" rel="nofollow noreferrer">http://jsfiddle.net/SB3KV/</a></p> <pre><code>&lt;div class="myclass"&gt;&lt;/div&gt; .myclass { background: red; width: 100px; height: 100px; } </code></pre> <p>I use several extensions : Emmet, GitGutter, LESS, Package Control, SFTP, Sass, Theme Phoenix and PyV8 (automatically add with SFTP)</p> <p><strong>Bad way</strong></p> <p><img src="https://i.stack.imgur.com/AzMoT.png" alt="I write my classname"> (I press the key tab)</p> <p><img src="https://i.stack.imgur.com/rYHTR.png" alt="I add the brackets and it&#39;s broken"> (the result)</p> <p><strong>Good way</strong></p> <p><img src="https://i.stack.imgur.com/AzMoT.png" alt="I write my classname"> (the correct behavior I want)</p> <p><img src="https://i.stack.imgur.com/I9F2P.png" alt="the space isn&#39;t associated to the class name"></p> <p>So how, can I fix this problem who give so many trouble ?</p> <p><strong>Update 1</strong></p> <p>Ok, it's seems to be the weirdest problem I have ever seen.</p> <p>I make some search, but nothing interesting.</p> <p>I deleted all my custom user preferences, nothing change, I remove all my packages, nothing change. I delete the ST2 application, no improvements, I also installed ST3 and I have the same strange issue.</p> <p>It's the most boring problem I have encountered.</p> <p><strong>NOTE</strong></p> <p>When I inspect the class name element copy/paste from ST2 on jsfiddle or even in stackoverflow, there is a non-breaking space. It's should be the problem, but I don't know at all, why it's adding this space after the class name.</p> <p><strong>Big Update 2</strong></p> <p>I think the problem didn't come from sublime text 2 only.</p> <p>I tried to create a simple div on codepen <a href="http://codepen.io/anon/pen/wDrxn" rel="nofollow noreferrer">http://codepen.io/anon/pen/wDrxn</a> or jsfiddle <a href="http://jsfiddle.net/2SJUQ/" rel="nofollow noreferrer">http://jsfiddle.net/2SJUQ/</a> and it didn't work.</p> <p>So, as you can see, there is a f*****k <code>&amp;nbsp;</code> added between the end of the class name and the bracket. I have tried on 3 differents Mac, and I have the problem, on all of them. At this point, I can't figure out why I have this problem. They are all of 3 on Mavericks, can the problem come from this?</p>
 

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