-
Notifications
You must be signed in to change notification settings - Fork 11
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
Wrong indentation on copy-paste #412
Comments
Yes, Shift+Alt+F fixes indentation. |
I think format-on-paste is out of scope of this extension, maybe you have some other setting messing things up? Does this issue occur when you disable this extension and try to reproduce the issue? |
I also find this frustrating, that the indentation, included in the copied code is removed when pasted after a hotkey or label, but I do find that if you perform an 'undo' Note: |
This setting was introduced for old formatter (when you hit Alt+Shift+F hotkey), it will format whole file, it didn't work with selected or pasted text. |
Removing this lines may fix copy-paste behavior. |
Closing this as won't fix given how minor it is. I recommend using braces to automatically indent code: F1::
{
MsgBox % "Hello world"
Return
}
F2::
{
MsgBox % "Hello world"
Return
} |
Description
I like to indent code of each separate hotkey in AHK-script.
It makes code more readable and clean.
The issue is when after copy-pasting a code with indentation the pasted code looses this indentation.
Reproduction steps
Expected behavior
Indentation is the same as in a copied text.
Actual behavior
There is no indentation in a copied text.
The text was updated successfully, but these errors were encountered: