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

featureRequest: save File when using shortcut key #139

Open
imhuay opened this issue Jul 9, 2017 · 6 comments
Open

featureRequest: save File when using shortcut key #139

imhuay opened this issue Jul 9, 2017 · 6 comments

Comments

@imhuay
Copy link

imhuay commented Jul 9, 2017

I thought it was BUG when I use shortcut key but the output was last time.
Then I find the file doesn't save.
But when I use right-click to run the file, the file can auto-save.
So I want the file can auto-save when using shortcut key

@formulahendry
Copy link
Owner

Can not reproduce this issue. Using shortcut key or right-click should be the same. Could you please provide more details?

@imhuay
Copy link
Author

imhuay commented Jul 9, 2017

When I test the Python code
right-click can auto-save the file, so the output is the lastest code
But shortcut key doesn't auto-save the file, so the result is last code

@imhuay
Copy link
Author

imhuay commented Jul 9, 2017

print(0)

Then I input print(1) continue and run the code at once using shortcut key without save the file manually

print(0)
print(1)

The output just

0

But if I use right-click the output will be

0
1

@formulahendry
Copy link
Owner

Are you using Ctrl+Alt+N to run?

@imhuay
Copy link
Author

imhuay commented Jul 10, 2017

yes

@caub
Copy link
Contributor

caub commented Nov 9, 2017

solved in #10

in options: code-runner.saveAllFilesBeforeRun for example

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

No branches or pull requests

3 participants