In my case, the default 'wrapping indentation' size is always 4 spaces.
I want to change this size. How can I configure this?
asked Jul 13, 2018 at 5:11
EnDelt64
1,3905 gold badges25 silver badges33 bronze badges
-
This looks like a duplicate of a solved question: stackoverflow.com/questions/29972396/how-to-set-tab-space-styleMatt– Matt2018年07月13日 05:14:49 +00:00Commented Jul 13, 2018 at 5:14
2 Answers 2
Click the gear on left bottom, then choose Settings and search wrappingIndent in settings, you can config it.
enter image description here
answered Jul 13, 2018 at 5:22
Feiyu Zhou
4,59437 silver badges39 bronze badges
Sign up to request clarification or add additional context in comments.
4 Comments
EnDelt64
I want to change wrapping indent size with actual values, like 1 or 2 bytes. Is it impossible?
Feiyu Zhou
Checking the source code: github.com/Microsoft/vscode/blob/…
tbrodbeck
they somehow changed it. It cannot be found anymore.. :/
tbrodbeck
Ah found it. Will create a new answer
Click the gear on left bottom, then choose Settings and search "wrapping indent" in settings. Here you can set it to "indent".
answered Feb 7, 2023 at 10:03
tbrodbeck
5282 gold badges9 silver badges20 bronze badges
2 Comments
Hogdotmac
not good enough. the wrap depth needs to have a different space width than the indent width i.e: + 0.5, otherwise it is confusing.
josh1978
@Hogdotmac There are several options in the drop down menu. Selecting "deepindent" gives the wrapped line +2 indentation. Your overall tab settings (ex: 2 space tabs versus 4 space tabs) will affect the perceived amount of indentation.