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
Please sign in to leave a comment.
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
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
Thanks, that's a useful tip. I'll remember that for the future.
Kind regards,
Geoff
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.