vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

Possible to prevent the run of whole file(or without selection)?

Open lokemoon opened this issue 6 years ago • 1 comments

Is your feature request related to a problem? Please describe. I am keeping the file with a bunch of commands, and most of the time i only need to run one or several lines after highlighted/selected command. But there were few times, the command run from the top to bottom unexpectedly. The frustration here are the reversal of the commands that ran accidentally.

Describe the solution you'd like Possible to add the new settings that to prevent the run of whole file or without selection?

lokemoon avatar May 23 '19 08:05 lokemoon

@formulahendry Hi sir, are we able to use "Run Selection Only" now?

This step below is not working in Code Runner v0.12.2

"Configure Code Runner to Always Run Selection (Optional) If you want Code Runner to always run the selected code (instead of the entire file) when no selection is made, you can configure it in the settings:

Open the VSCode settings (Ctrl+, or Cmd+, on macOS).

Search for Code Runner: Run Selection Only.

Enable the option: Run only the selected code instead of the entire file."

jiacheng-0 avatar Jan 23 '25 09:01 jiacheng-0