How to run the most recent testcase with shortcut key in vscode?

6bdb1532df36cd243cefa0001eabb4d
I often click on the "Run Test" button on the page to execute test cases. It's very inconvenient to come back and click this button again after making modifications elsewhere when a test fails. Is there a shortcut key available to execute the most recent test?
In IntelliJ IDEA, I can just use "Ctrl+ F5".

You are looking for the command workbench.action.tasks.reRunTask “Tasks: Rerun Last Task”.

As with any command, you can set its keyboard shortcut to Ctrl+F5 or anything else you want, but it doesn't have one by default.

There are also “Run Task” and “Run Test Task” which pop up menus, but the most recently used task will be first in the menu.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.