How to switch from the code/script to the terminal in vscode without mouse usage - visual-studio-code

I dont want to use my mouse to move to the terminal below the script in VSCode.
Example:
I have a python terminal below, which I would like to experiment in between writing the script.

Related

Auto hotkey to copy selected code and run in cygwin

My company uses Windows, but our AWS resource is in Linux. During code fiddling, it often creates a situation where I open cygwin, ssh to the AWS head node, load R/Python in the cygwin console, copy and paste a block of selected code from my local Rstudio code editor, and paste it to cygwin console and run.
In Rstudio, one can press "Ctrl + Enter" to run a selected block of R/Python code in the code editor. How can I achieve the effect of: by pressing "Ctrl + Shift", the selected block of code will be auto-copied into the cygwin window and run?
I am looking at this post: https://www.autohotkey.com/board/topic/92654-copy-and-paste-between-applications-noobs-first-attempt/ but couldn't figure out how to adjust it to my need.
Thanks!

Cannot find Run Selection/Line in Interactive Window command in VS Code

In VS Code, I'm trying to add a keyboard shortcut for the Run Selection/Line in Interactive Window command but when I go search for it in the settings, I cannot find it. I see run in Django and Terminal but not for Interactive Window.

Does VS code have variable explorer object like we have it in spyder?

I will post the picture of what exactly I am asking variable explorer in spyder
So do we have this feature in VS code?
I tried a lot to find it on google but was unhappy to not find it.
Open your .py script in vscode
Right click anywhere on the script > Run current File in interactive Window
In the toolbar of the interactive window click on the variable icon
You can now consult the values of variables created by your script
spyder is probably running a REPL (Jupyter is doing that also). From that python process they show the local and global variables, just like a debugger would do on a breakpoint.
If you use Python Interactive you have similar functionality with the Variables Explorer and Data Viewer or use Jupyter notebooks
You can now find all variables in a Jupyter Notebook in VS Code in the Output panel under Jupyter: Variables

NeoVim make terminal window automatically close when program exits

The vim version has a ++close option that automatically closes the terminal when the job terminates, but since the NeoVim terminal came first it doesn't have that feature.
I need this because i am trying to run programs directly from vim, but i regularly make
curses applications which the popup window you get from :!python % can't handle, so i need the terminal window.
I am using NeoVim on arch linux if that's relevant.

How to replicate the following Spyder behavior in VSCode?

I'm new to coding Python in VSCode. Previously I used Spyder but decided to move to VSCode as the project management seems better in it (I could easily switch to other files/folders by clicking on the path, just like in PyCharm). But I really need this one workflow which I still have not managed to do it in VSCode.
write some codes like Selenium.
Click run (F5)
The selenium browser opens up.
I could use the Ipython terminal to access the code interactively (find the element in the browser etc) and send new command.
I would like to have this workflow in VSCode. Im also quite overwhelmed by the difference in these 2 IDEs, for example, in VSCode, you have integrated terminal, a debugging console and an output tab, while im used to have only one-for-all Ipython tab.
Ok, I figured out what I need. Basically I just need to right click on the python file that I want to run on the side bar. Then I have to select 'run current file in interactive window'. The only difference is on the Ipython console, I have to use shift+Enter to send my input instead of just clicking enter. But its not a big deal.