Elders/VSE-FormatDocumentOnSave

Feature to have key combination save without formatting?

tendimensions opened this issue · 11 comments

This is a great extension that I've used for years. Interestingly, I've only recently encountered a scenario where it would be nice if I could do a CTRL-SHIFT-S (or something like it) that would save a file without it re-formatting. Very rarely do I want to save without re-formatting, but when I do it doesn't seem possible without disabling the extension?

Would this be a possible feature to include?

Yes, it is possible. Could you please describe the scenario in details so we could do it the right way?

I also need it. For me the problem is that I am maintaining a template file, and I don't want the extension to be remove the usings on the top of the file. I am doing not only formatting, but cleanup on save.

@tendimensions @giggio

How about a key shortcut which Enable/Disable the extension?

Another option which I was considering is to have the plugin disabled when the scroll lock is ON

VS Code adds a menu to save without formatting. That would be the most flexible for me.

@giggio what is the shortcut for this operation?

Ctrl+k Ctrl+Shift+s

image

I have a version where the formatting is disabled when the CAPSLOCK is ON. If you think this is a good solution I can release it.

I prefer to have a different save option, but this is a good first step. How about releasing it and then evolving it later?

OK, this is now included in v1.25.

Feel free to reopen this issue if you face any problems

Thanks for this ❤️