9

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
1

2 Answers 2

21

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
Sign up to request clarification or add additional context in comments.

4 Comments

I want to change wrapping indent size with actual values, like 1 or 2 bytes. Is it impossible?
Checking the source code: github.com/Microsoft/vscode/blob/…
they somehow changed it. It cannot be found anymore.. :/
Ah found it. Will create a new answer
3

Click the gear on left bottom, then choose Settings and search "wrapping indent" in settings. Here you can set it to "indent".

enter image description here

answered Feb 7, 2023 at 10:03

2 Comments

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.
@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.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.