VS Code cursor jumps to the end of file after execution

When I execute a file in VS Code by pressing “Shift+Enter” the cursor jumps to the end of the file. How can I avoid this behavior?

Shift+Enter doesn’t evaluate the file, it evaluates the current cell (delimited e.g. by ##) and moves to the next one. Use the Julia: Execute File command to eval the file instead; consider assigning a keybinding yourself or use the Juno-compatible keybindings instead (these might also be the new default in the next version).

1 Like

Thank you.
It is strange that there is no default key combination for this purpose.