Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Request for changing text editor style for PowerShell #3109

Open
Labels
Feature: VS CodeRequest to use or implement a VS Code feature. Issue-EnhancementA feature request (enhancement).
@Alessar

Description

For PowerShell language, one of code style can be formatted as:

Do-SomeFunction -Argument1 value1 `
 -Argument2 value2 `
 -Argument3 value3

Indentation for parameters is equal.

When typing a second line and put "Newline" character - cursor goes to indentation as at previous (second) line - and it is expected. But when typing a first-line and put "Newline" character - cursor calculates indentation as a previous first line (it has no indentation) - and after that user should put several additional "spaces" for making a correct indentation.

It will be cool if cursor calculates the first occurrence of argument and make the same (equal) indentation.
It should be done only if the latest character is "top comma" ( ` )
Maybe it should work only if indentations place by "spaces" but not tabs.
Maybe such new behaviour should be turned on/off by additional preference.

The feature request was previously created at the vs-code repo.
They mentioned that the current extension is a more preferable place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: VS CodeRequest to use or implement a VS Code feature. Issue-EnhancementA feature request (enhancement).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /