Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[help wanted] how to disable reload when RunCode #112

Closed
shellRaining opened this issue Apr 22, 2024 · 3 comments
Closed

[help wanted] how to disable reload when RunCode #112

shellRaining opened this issue Apr 22, 2024 · 3 comments

Comments

@shellRaining
Copy link

auto reload indeed very convenient when solve algorithm problem, but sometimes I just want to run this code once. may I ask how to disable this feature? thanks

@CRAG666
Copy link
Owner

CRAG666 commented Apr 25, 2024

Most languages ​​do not have automatic reload enabled. Can you be more specific?

@shellRaining
Copy link
Author

I use javascript to solve some algorithm problem, when I write

function sum(a, b) {
  return a + b
}
console(sum(1, 2))

and use command RunCode, the result will show, then change the origin file, the code will rerun

@rokbot
Copy link

rokbot commented May 16, 2024

In your code runner plugin config setup add the key hot_reload :

require('code_runner').setup({
hot_reload = false,
filetype = {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants