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

Execute rules on save automatically #30

Open
freddyli opened this issue Apr 24, 2020 · 1 comment
Open

Execute rules on save automatically #30

freddyli opened this issue Apr 24, 2020 · 1 comment

Comments

@freddyli
Copy link

Hi there - really awesome extension!

Is there a possibility to execute rules / rule sets on save, automatically? Currently a have following rule to auto-indent blank lines:

{
    "find": "^ *$(?=\\s*\\n( *)|)",
    "replace": "$1"
}

I would like to run this and other rules automatically on save.. can you help me here?

Thank you!

@martinandersen3d
Copy link

https://marketplace.visualstudio.com/items?itemName=pucelle.run-on-save

{
"runOnSave.statusMessageTimeout": 3000,
"runOnSave.commands": [
{
"match": ".*\.py$",
"command": "Your_Custom_Command",
}
]
}

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

No branches or pull requests

3 participants