-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Manually execute "Format Code" action #32
Comments
Found it! editor.getAction('editor.action.format').run() Thanks. |
I press your code and I'll make a mistake.
Like this command |
|
@MohammadYounes |
@CoderPoet
|
hahaha; editor.trigger(‘anyString’, 'editor.action.formatDocument'); works for me. |
editor.getAction('editor.action.formatDocument').run(); |
Is it possible to manually execute the "Format Code" action ? and How ?
Thanks!
The text was updated successfully, but these errors were encountered: