Open monoblaine opened 8 years ago
No, we don't currently have that level of configuration available. Is there a specific aspect of format document you are trying to avoid or is it a blanket request?
Visual Studio removes the space between function name and the parentheses:
function hede () {}
becomes
function hede() {}
And there's no option to disable that.
Understood. It's not complex code to write to add this specific option for your use case, but the difficulty we run into is the complexity of visualizing all of the specific options (and combinations of them) within the Options dialog. We currently have ~140 options and I'm not sure how to add this one cleanly without considering a bit of redesign. I'm open to suggestions.
As far as I understand, options that concern files beyond .NET-related ones are:
Cleaning > Update
How about showing a button with a label "Applied To" near all these universal (not .NET specific) options? When clicked, display a form with two radio buttons:
Cleaning > File Types
\.(htm|html|cs|less|js|config|asax|ashx|aspx|resx|css|scss|sql|json|txt|md|cshtml)$
When I save a file, I'd like to have CodeMaid do all the cleanup actions with an exception: If the file is a JavaScript file, do not format the file. I just want to disable the formatting action, but others should remain (It should still add end of file trailing new line, for instance) Is this possible?