Auto complete for SCSS

I meant to type the following SCSS code:

.products {
    table {
         border-collapse: collapse;
    }
...
}

However auto code complete keep getting in my way:
I typed in "table" and auto complete shows "table-layout"...



and then when I pressed the spacebar, "table-layout" instead of "table" went into the code.



How can I avoid this?

thanks
lchong2

0
4 comments

Hi lchong,

I too find that sometime the auto-complete gets in the way - but I find that the best thing is to not fight it: type the opening brace, that should terminate the a-c suggestions, and then fill in the space later.

Hope the helps.

Kind regards,
Geoff

0

I resolved this by changing existing Code Completion configuration:

Preferences...> Editor > Code Completion, and then changed "Preselect the first suggestion" option from 'Smart" to "Never".


Thanks
lchong

0

Thanks, that's a useful tip.  I'll remember that for the future.

Kind regards,
Geoff

0

Root of the problem is that nested selectors are currently not processed correcly for SCSS/SASS/LESS.
You can vote for corresponding issue and track it's progress.

0

Please sign in to leave a comment.