bhughes339 / vscode-replacerules

Search/replace rule support for Visual Studio Code
GNU General Public License v3.0
41 stars 13 forks source link

Run Ruleset on paste #53

Closed dpfeil closed 2 years ago

dpfeil commented 2 years ago

What does this PR do?

Based on: #35

Notes: In order to actually test this locally and get it running, I did need to update some packages

dpfeil commented 2 years ago

@bhughes339 - Not sure if you're looking for adding this feature, but I had a use case for it, so I forked and added it. Figured I would submit a PR with the additions to the main repo if you were interested.

bhughes339 commented 2 years ago

Looks good. Thank you!

findxc commented 1 year ago

Hi @bhughes339 , can you help to update the README to include this feature example?

Clipboard Replace for Ruleset:

{
    "key": "ctrl+shift+]",
    "command": "replacerules.pasteAndReplaceRuleset",
    "when": "editorTextFocus && !editorReadonly",
    "args": {
        "rulesetName": "Remove trailing and leading whitespace"
    }
}