I
I
Ily4farmer2020-05-20 11:44:30
Sass
Ily4farmer, 2020-05-20 11:44:30

How to fix error when copying to sass files?

The bottom line is, when I need to copy something into a sass file, it collapses all the lines to one
. I'll give an example.
I need to insert border: none, logically, when copying (Ctrl + V), it should become like this:

.button
    background-color: $main-color
    border-radius: 10px
    border: none

But VS Code does this:
.button background-color: $main-color border-radius: 10px border: none padding: 18px 30px

But if you press Ctrl + Z, everything becomes normal
. What is the reason and how to make sure that everything is copied normally right away?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Viktorovich, 2020-05-29
@shotlandec1980

// settings.json
"editor.formatOnPaste": false,

D
DarkRou, 2020-05-20
@DarkRou

you can try ctrl+shift+v - paste without formatting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question