Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Indent affecting lines incorrectly #169

Open
Gaiko-sw opened this issue Mar 30, 2025 · 0 comments
Open

Fix Indent affecting lines incorrectly #169

Gaiko-sw opened this issue Mar 30, 2025 · 0 comments

Comments

@Gaiko-sw
Copy link

Which OS are you using?

Windows

Expected Behaviour

Writing local ret = Button:new(text, x, y) and then putting in a new line before text, to change the arguments to a vertical list, un-indents at text. That is, the result is

Button:new(
text, x, y)

Actual Behaviour

The result should be

Button:new(
    text, x, y)

Reproduction steps

  • Write a function with an argument
  • Break before the argument

Additional Notes

The behaviour is as expected if Fix Indent is off. However I believe the point is for other cases like strings, to get

"I went to a function
the other day"

and not

"I went to a function
    the other day"

I'm not exactly sure what the point of the option is. I assume it doesn't apply to every time vscode indents code, but I think the set it's supposed to apply to probably shouldn't apply to the function(arg) case.

Log

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant