Code style in SCSS files
Hi,
I'm not sure if I'm doing something wrong or if this is a bug:
When I open a new brace in a .scss file and press [ENTER], PhpStorm creates an empty line an places the cursor before the closing brace. This means I have to place the cursor one line up and press [TAB] to create the indentation. If I start typing without moving the cursor after opening the brace and pressing [ENTER], it looks like this:
#myID
{
float:left;}
This becomes very annoying when using multiple indentations:
#myID
{
float:left;
.inner
{
float:left;}}
When doing the same inside a .css file, the code style and indentaion work perfectly:
#myID
{
float:left;
.inner
{
float:left;
}
}
Also, in .scss files, PhpStorm doesn't add a space after the colon (like in example above), while it does so in .css files.
Is there a possibility to use the same code style for .scss files like for .css files?
Thanks,
Florian
Please sign in to leave a comment.
Hi Florian,
1) http://youtrack.jetbrains.net/issue/RUBY-10030?projectKey=RUBY
2) As for not-inserting-space -- cannot find the right ticket right now (I think I saw one already, but not 100% sure). But please have a look at these possibly related tickets:
You can try to search the Issue Tracker yourself for that or other tickets (or create new one if you cannot find any).
Hi Andriy
Thanks for clarifying! I did read this post http://devnet.jetbrains.net/message/5299570#5299570 but thought that I was messing up something with the file types. Gotta check the Issue Tracker first next time ;-)
I hope it gets fixed soon, as I'm struggling with this problem since some months now. I should have opened a ticket earlier.
Thanks again,
Florian