Skip to content

Instantly share code, notes, and snippets.

@ScottHutchinson
Created December 26, 2019 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ScottHutchinson/b42a8fb3b906789654c1ba4a7ba5511c to your computer and use it in GitHub Desktop.
Save ScottHutchinson/b42a8fb3b906789654c1ba4a7ba5511c to your computer and use it in GitHub Desktop.
How to automate removing the skip argument from all the tests in VS Code
  1. Install the Replace Rules extension for VS Code.
  2. Save this setting to the settings.json file:
    "replacerules.rules": {
        "Remove skips": {
            "find": "(Skip = \"Remove to run test\")",
            "replace": "",
            "literal": true
        }
    }
  1. Activate the [exercisename]Test.fs file.
  2. Press Ctrl+Alt+r and select the "Remove skips" rule.
  3. Save the [exercisename]Test.fs file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment