question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatter adds indentation on "for" even if just a string

See original GitHub issue

Found:

try to format this:

InputBox, name, for bla
if somthing
    Return

it will turn to:

InputBox, name, for bla
    if somthing ; << indentation added!
    Return

Expected:

There is actually no change expected. It seems to be triggered on the for keyword!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mark-wiemercommented, Feb 5, 2021

If you still want this issue fixed, please open an issue in my fork, and I’ll look into it! It’s easier to track one repo only. I have been making some changes to the formatter recently, so something like this shouldn’t be too hard. I’m prioritizing dev QoL right now (no new features or bugfixes, just refactors and adding tests), but I should be able to get to it in March at the latest

1reaction
mark-wiemercommented, Dec 16, 2020

Hiya, maintainer of AHK++ here! I started the project in November when cweijan announced they (unsure of pronouns, sticking with neutral) had stopped development on AHK Plus. Clearly, they’ve picked it up again, which is great. I plan to work with them to figure out the best way forward for AHK Language Support in VS Code. In the meantime, I’ll be working to merge changes to AHK Plus into AHK++ (along with additional changes to AHK++).

Looking forward to reviewing your PRs, feel free to ask for help any time 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add Indent to format multi-line strings · Issue #34006 - GitHub
when we right multi-line string, it looks like this: var code = @" public class MyClass { public void MyMethod() { } }";...
Read more >
How to correct indentation in HTML string? - Stack Overflow
Here is a simple recursive function I wrote, which I think might help you to achieve what you are after. function process(str) {...
Read more >
Module Format - Reason
Executes the next formatting command if the preceding line has just been split. ... If a new line is printed, offset is added...
Read more >
Multiline template strings that don't break indentation
Solution 1: Ignore all space and tab characters following a newline until the first non-space or tab character. The problem with this is...
Read more >
Clang-Format Style Options — Clang 16.0.0git documentation
We'll use defaults from the LLVM style, but with 4 columns indentation. ... putting all arguments onto the next line, even if BinPackArguments...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found