Shift+Enter shortcut behaving oddly

My “Shift+Enter” shortcut is behaving oddly on VS Code after a code I was running crashed. Previously, it ran the specific line (or for, function, if blocks, etc…) selected and moved to the next one, but now it tries to run the whole code.

If I separate cells with ## this shortcut properly runs this cell, but this is just not the behaviour I’m used to and want, and all the previous related topics I found had as solutions using these delimiters…

Edit: Never mind, apparently a bug in the extension, see @pfitzseb’s post below.

I’m not sure why your shortcut would’ve changed, but it might be possible to change it back.

If you go to the command pallette in vscode (default shortcut ctrl+shift+P) found in the top bar of a vscode window and start typing:

julia:execute

this will list a bunch of commands:

I’ve changed some of my shortcuts, so yours will probably look different, but it sounds like the one you want is “Execute code in REPL and Move”. You can change the shortcut by clicking the cogwheel next to the command.

This is a regression in the latest release of the extension. Give me a couple minutes to fix it, should be done soon. For now you can temporarily downgrade to 1.176.

2 Likes

1.179 is now released and should fix the issue.

Please report back if something about inline evaluation is still broken for you.

1 Like