This extension is
available
in the Visual Studio marketplace. Please don't forget to also install the
server.
- Arrange a terminal and VSCode on your screen(s) so that you see both. You can use the terminal built into VSCode or an external one here.
- Start the server by running
contest
in that terminal. - Open Visual Studio's command palette by pressing (
Ctrl-Shift-P
orCmd-Shift-P
). Entercontest
to trim the list of available commands. Choose one of these commands:
Test the active file on save | Tests the file that is active in your editor when you save |
Test the active file on double-save | Tests the file that is active in your editer when you save twice within 500ms |
Test everything | Runs all tests once |
Test everything on save | Runs all tests every time you save any file in your editor |
Test everything on double-save | Runs all tests every time you save twice within 500 milliseconds |
Test this file | Tests the file that is active at the time you choose this command onec |
Test this file on save | Tests the file that is active when you run this command, each time you save any file in your editor, no matter which file is active when you save |
Test this file on double-save | Tests the file that is active when you run this command, each time you save any file twice within 500 milliseconds no matter which file is active when you save |
Test this line in this file | Runs the test for the given line in the currently active file |
Test this line in this file on save | Runs the test for the given line in the currently active file, each time you save any file |
Test this line in this file on double-save | Runs the test for the given line in the currently active file, each time you save any file twice within 500 milliseconds |
Repeat the last test | re-runs the last test that Contest ran, once |
Start/Stop repeat the last test on save | re-runs the last test that Contest ran, each time you save any file |
Start/Stop repeat the last test on double-save | re-runs the last test that Contest ran, each time you save any file twice within 500 ms |
Stop the current test | If a test is currently running or hanging, stops it |
Quit the Contest server | If the Contest server or the terminal/shell that the server runs in hangs, sends a signal to the server to quit |
See the developer guide.