简体   繁体   中英

VSCode messes up indentation in Java

I am using VSCode (+ some java plugins) to do some core java work and the experience is very good so far. My team members, most of whom use Eclipse, complain that I mess up the spacing/indentation on every commit; sometimes even for lines that I don't change.

How do I prevent VSCode from doing that?

Michael

these settings might can give you some helps:

  1. "editor.insertSpaces": true,
  2. "editor.detectIndentation": false,
  3. "editor.tabSize": 4,

comes from: https://code.visualstudio.com/docs/getstarted/settings .

and these commands(click the 'Spaces:x' on the bottom right of vscode):

"Convert Indentation to Spaces",

"Convert Indentation to Tabs",

and so on...

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