Home > OS >  In vscode, if I put a comma in an element, it aligns vertically
In vscode, if I put a comma in an element, it aligns vertically

Time:09-20

In vscode, if I put a comma in an element, it aligns vertically. It seems to have happened since I installed black in Python. css is also vertically aligned. How do I put this exception?
For example, if about 80 characters are exceeded, it would be good to move to the next line.

Python

alphabet = [
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "q",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
    "a",
    "b",
    "c",
    "d",
    "e",
    "f",
    "g",
    "h",
    "i",
    "j",
    "k",
    "l",
    "m",
    "n",
    "o",
    "p",
    "q",
    "r",
    "s",
    "t",
    "u",
    "v",
    "w",
    "x",
    "y",
    "z",
]

CSS

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Montserrat";
}

CodePudding user response:

I am pretty sure its an formatting issue. Please check your settings.

CodePudding user response:

Please check your vscode extension like "prettier-code formatter", if it is enable then disable it. It will stop formatting your code.

  • Related