microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.25k stars 1.15k forks source link

REPL Rewrite #21707

Open anthonykim1 opened 11 months ago

anthonykim1 commented 11 months ago

Below lists plans for REPL in VS Code Python as of (May 31st, 2024). More subset of steps are subject to being added as I move forward incrementally.

Milestone 1:

Milestone 2:

Milestone 3:

rchiodo commented 3 weeks ago

@anthonykim1 @luabud I was wondering if the new REPL would be able to support completions from a language server? Does VS code give you the ability to put up a completion list? (Maybe similar to how history works?, you tab and then it tabs through completions)

anthonykim1 commented 3 weeks ago

Hello @rchiodo I'm not entirely sure what you mean, but are you talking about Intellisense? In terms of command history, I believe you can use up and down arrow to navigate through previous commands in the new notebook style REPL.

Screenshot 2024-06-04 at 10 48 03 AM
rchiodo commented 3 weeks ago

That screenshot is exactly what I was talking about. Completions for the code module. It looks like the REPL is already doing what I asked for then :)

anthonykim1 commented 3 weeks ago

Great! Try adding

"interactiveWindow.executeWithShiftEnter": false,
"python.REPL.sendToNativeREPL": true,

in your settings.json to give the new REPL a try!