Is there any setting for vscode-code-runner to setup a file that would be always run when I click on run button regardless which file is open in editor currently.
Is there any setting for vscode-code-runner to setup a file that would be always run when I click on run button regardless which file is open in editor currently.
as of writing this comment i do not believe it's possible with this extension. The next best thing i can recommend is to execute the file you want to run with coderunner, then copy the command that it generated and executed. You can then paste this command in your
setting.jsonfile as a custom command like soTo execute the custom command from anywhere in your workspace, do
ctrl+alt+KYou can also create a
launch.settingsfile to run and debug your code from the debug tab which you can then execute withctrl+shift+Dit's not as slick as a nice run button but it's better than nothing