Skip to content

Support assigning numeric value to "editor.wrappingIndent" #42203

Open

Description

@minacle
  • VSCode Version: 1.19.3

editor.wrappingIndent is currently supporting "none", "same", "indent".

The problem with "same" is that it is difficult to know where the new line starts, and the problem with "indent" is that it is difficult to know where the new block starts. (Also, I don't like "none" 😜)

Many IDEs and editors support custom numeric value for wrapping indent.
I hope this feature is also supported in Visual Studio Code.

Current: "editor.wrappingIndent": "same"
Current

Desired: "editor.wrappingIndent": 1
Desired

Activity

  1. added
    editor-core
    on Jan 26, 2018
  2. added
    feature-request
    and removed on Jan 29, 2018
  3. alexreg commented on Aug 11, 2019

    @alexreg

    +1 for this. It would also be nice to have an optional separate setting for comments.

  4. Spleeding1 commented on Jan 17, 2020

    @Spleeding1

    Yes absolutely. I would like a 1.5 indent setting. So if indent is set to 4, wrap is 6. If indent is 2, wrap is 1. etc.

    class MyClass(object):
        def method(variable_1, variable_2, variable_3
          variable_4): # wrapped at 1.5 indent
            # method code
    function myFunction() {
      document.querySelectorAll('nav > ul >
       li:first-child').forEach(function(){
        // function code
      });
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    editor-corefeature-request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions