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

Auto format text shortcut key? #123

Closed
manuel-di-iorio opened this issue Feb 23, 2021 · 2 comments
Closed

Auto format text shortcut key? #123

manuel-di-iorio opened this issue Feb 23, 2021 · 2 comments
Labels

Comments

@manuel-di-iorio
Copy link

manuel-di-iorio commented Feb 23, 2021

Hi, what's the shortcut key to autoformat the code, like Shift+Alt+F in VS Code ?
Can it be enabled on file save ?

(Based on this issue #7)

@YellowAfterlife
Copy link
Owner

I don't believe that the formatter is currently bound to any shortcut at all - over time it broke due to new tokens being introduced, and has had some limitations even before that.

Making a minimal plugin to invoke gml_fmt on the current file can be a better way. You can get the path to the currently open tab via $gmedit["gml.file.GmlFile"].current.path.

@manuel-di-iorio
Copy link
Author

Thanks

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

No branches or pull requests

2 participants