How show button to run current file in Visual Studio Code - visual-studio-code

Recently, in one of my Visual Studio Code instances, now there is a green "play" button that allows me to Run Python File in Terminal.
You can see that button in the picture below, just between the "open changes" and the "split editor" buttons.
I have Visual Studio code installed in other computers, and there is no such button. I would like to show that button since it comes very handy, but I do not know how to make that happen, and I cannot find any documentation.
Note: I'm not using any extension for running files

The 'Play' button feature is in testing at the moment, and so is only available to those in the experiment group.
https://github.com/microsoft/vscode-python/issues/5321
Having said that, I had the button appear yesterday part way through a session.
Unfortunately, today the button is no longer present, and I am not part of the experiment group.

Install Code Runner simple by press (Ctrl+shift+X) and search for "Code Runner",it works for almost all languages including python. it gives you a button and shortcut Ctrl+Alt+N.

This area is called "Editor Actions". It's now available by default but unfortunately cannot be hidden unless you modify stylesheet:
https://github.com/Microsoft/vscode/issues/46403

Related

How to Show Code Runner Shortcut In VS Code

How can I show the Code Runner shortcut in Visual Studio Code if I mistakenly hid it?"
I was using Visual Studio Code and I accidentally hid the Code Runner shortcut. Is there a way to show it again? I have tried searching in the keyboard shortcuts settings but can't seem to find it. Any help would be appreciated (P.S I Know Many Of You will Say Use a Shortcut Key, or Reinstall the CodeRunner & VS Code But All Is Not Working)
How Can I get Code runner Shortcut Again
Make sure that you enabled your "Code Runner" extension
Go to the top right corner of VS Code to find a button that looks like three dots (...)
Right click on it and press "Run Code"
The Run Code button should reappear now

How to add a shortcut for "Launch the selected target in terminal window" button?

I use Visual Studio Code and the CMake extension (twxs.cmake). The extension integrates CMake to vscode. There is a button which allows us to run a target in terminal window. It looks like a play button. .
My question is, how can I add a keyboard shortcut for this button? I cannot find the action name so I cannot link it. I wish to use keyboard shortcut instead of clicking that button every time.
I tried googling the action name of this button so I could bind it with any keyboard shortcut, but I couldn't find anything.
Any help will be appreciated.
Thank you in advance!
Shift+F5 appears to do the same thing as clicking that button.
I found the following here:
Running Targets Without a Debugger
Sometimes one will want to just run a target and see its output. This
can be done with the CMake: Execute the current target without a
debugger command, or the associated keybinding (the default is
Shift+F5).
The output of the target will be shown in an integrated terminal.

"Show Execution Point" JetBrains debugging action keyboard shortcut equivalent for Visual Studio Code VSCode

I can't find in Visual Studio Code equivalent debugging action for "Show Execution Point". Shortcut/function to navigate back to file and place in that file where debugger currently is).
Sometimes (actually all the time) while debugging it is necessary to look around, navigate to different source code files but then you have to come back where debugger is.
It works perfectly in all JetBrains products, you just have to trigger "Show Execution Point" (Option+F10 on Mac by default, I usually have it remapped to different shortcut) action but I can't find equivalent of that in Visual Studio Code.
Is that the case of different name? or it is simply not there?
Or maybe there is a plugin for this then?
Just to recap what I'm asking is:
Is there any possible way to replicate this behaviour under keyboard shortcut -> when you press that shortcut I would like IDE to re-navigate back to the file where currently debugger is and scroll to that point in the source file in order to show where currently debugger is.

What is that component on the top-right of VS Code called? How can I change the setting of it?

I'm using VS Code on Mac and I was curious about one component.
Every time I open a new python file, this component will show up on the top right of the current window? But I can't find the name of it.
That's not just "one component", but actually multiple buttons added to the editor actions toolbar from multiple extensions installed on your VS Code.
In order from left to right:
Open Changes (built-in with VS Code as part of their Version Control functions)
Run Python File in Terminal (added by Microsoft's own Python extension)
Open Changes in previous revision (added by the GitLens extension)
Show Revision Details (added by the GitLens extension)
Open Changes in next revision (added by the GitLens extension)
Toggle File Blame Annotations (added by the GitLens extension)
Split Editor (built-in with VS Code)
For GitLens, they are automatically added when it detects the currently opened file is part of a git repository. You can configure them by accessing the command palette (CMD+Shift+P on a Mac), then entering "GitLens: Open Settings". Find the "Menus & Toolbars" section:
For example, if you want to remove buttons 3., 4., and 5., uncheck "Add commands to the editor group toolbar" > "Add comparison commands". Then reload VS Code. You can configure all the other settings there.
For the green Play button, it automatically appears when you the currently active file is a Python file. AFAIK, there is no way to configure or hide/remove it other than disabling the Python extension completely (which you certainly don't want to do). There are requests on VS Code's Github page to hide it, like this: Add setting to disable icon for "Run Python File In Terminal".
For the "Open Changes" and "Split Editor" buttons, AFAIK there is no built-in way to hide/remove them. You can only control the behavior from the VS Code settings:
As mentioned in the comments, there is a feature request for VS Code to Allow hiding the buttons in the tab bar line and in the panel title bar, which includes the "Open Changes" and "Split Editor" buttons. There are users who provided workarounds at hiding the buttons using extensions. You may want to follow that thread and/or try out some of those extensions.

Choose-Command popup in Eclipse

I would like to ask if there exists some functionality in eclipse where it's possible to choose all available commands, instead of having to remember all the shortcuts.
Something like the command palette in sublime text 2. Where you by pressing ctrl+shift+p (windows/linux) get an input popup box where all availble commands can be choosen.
Does such a feature exists for eclipse, or should I develop it by myself?
Thanks in advance.
I just bumped into this feature by accident but looking up to see if I figure how to get to it. it looked like it popped up when I started typing after having launched eclipse without focusing on any particular view... more to come as soon as I find out for sure.
EDIT: Apparently when you first launch Eclipse the focus is on the "Quick Action" search box on the top right of the tool bar and that's where you can start typing command names for it to list and let you pick in good Sublime Text style. Not sure how to shortcut into the box other than clicking it, but apparently there's the feature.
EDIT#2: http://www.vogella.com/tutorials/EclipseShortcuts/article.html#shortcuts_overview describes Ctrl+3 as being the shortcut to get there, on the Mac it translates to Cmd+3.
I haven't been able to find anything, so I have started on developing my own plugin.