Formatter adds indentation on "for" even if just a string
See original GitHub issueFound:
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:
- Created 3 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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 😃