简体   繁体   中英

VS Code add spacing after signs = + how to remove the space

On my VS code editor i installed prettier extensions and its adding an auto space after the operating signs like "= +". I would like it to be "=+". I have tried to search and reinstalled the VS code program.

thanks for helpers!!

You made a syntax error, that's why your code formatter changing it.

Look at this:

Wrong: =+ Right: +=

Ex:

let i = 2;
    i += 4;
    console.log(i) // => 6

I think you got it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM