Eclipse shortcut to open run/debug configuration list - eclipse

Is there a shortcut to open the list of saved run/debug configurations as shown below?
Just to open and select a configuration to run. I really don't like using the mouse everytime to open the dropdown list and select my configuration.
If there isn't a pre-defined shortcut for it, can one be made manually if not?

Alt+R followed by T shows you the drop down menu in Run > Run History.

Related

Add "Open with eclipse" in the windows explorer file submenu

Sometimes you would like to open a file directly inside eclipse without having it included in any eclipse project.
On those cases it would be very handy to have the option Open with eclipse in the Windows explorer.
Please, do not misunderstand me, i do not want to open the explorer from within eclipse but otherwise around.For that there are other questions here.
Do you know how to add this submenu option to windows explorer?
Thanks
I have found a way to do this.
You can follow the instructions inside this article:
https://www.howtogeek.com/howto/windows-vista/add-open-with-notepad-to-the-context-menu-for-all-files/
but instead of using notepad you use the eclipse path.
Navigate to HKEY_CLASSES_ROOT*\shell
Right-click the shell key and choose New > Key. Name the new key “Open with Eclipse.”
Now, you’re going to create another new key inside that one. Right-click the new Open with Eclipse key and choose New > Key. Name the new key “command.”
With the new command key selected, in the right-hand pane, double-click the (Default) value to open it’s properties page.
In the “Value data” box, type the following text and then click “OK.”
path2eclipse\eclipse.exe %1
I have already tested and works without problem.

How to run system shell/terminal inside Eclipse?

I am using Eclipse Neon, and I would like to execute system commands on a shell/terminal, inside Eclipse.
In particular, I will need to open the system shell using the path of the current project folder on which I'm working in Eclipse.
In some Eclipse packages, like STS or Eclipse for JEE Developers, the Terminal is already installed in your IDE. If not, you can install the TM Terminal from the Eclipse */release update site, as you can see in the image below.
To open the command prompt (shell or terminal) using the path of a project directory inside Eclipse, you just need to select the folder, and press Ctrl+Alt+T, or right-click and select Show In Local Terminal > Terminal.
Then, the terminal will open in a new view inside Eclipse.
The Eclipse IDE which I am working there is no Terminal is there. So I needed to add the plug in like this and it works fine when you try clicking Alt+Ctrl+T
Click on Help in Eclipse-->Eclipse Marketplace--> in Find box (Search terminal and Enter)--> You will see TM Terminal 4.0 Version and just install it.
You may need to restart afterwards
And finally you will be able to get the Terminal when you will type
Alt+Ctrl+T on Console.
If you don't have the TM Terminal plugin installed, you could use external run configurations.
Click on the arrow near run button with the toolbox and add a new external run configuration.
Here, you can enter the path of your program(if you want to run commands, it will be C:\Windows\System32\cmd.exe (or the path to PowerShell on windows and /bin/bash (or similar if you use another shell) on linux.
In this dialog, you can also specify running directory of the application(the current project in your case)
After that, you can save this configuration and start it using the external run configuration menu(run button with toolbox)
Click on Run Cofiguration--> arguments --> Program Arguments (write any number of String) -->click on run
Go to Window > show view > Other.
A dialog will show up, type Terminal in the search field, select Terminal and click open.
A new empty view will show up in Eclipse.
On the top right corner of the view there is a button Labeled "open a Terminal".
Click on it, a dialog will show up
click OK and there you go, you got a Terminal.

Is it possible to set which file to run by default in eclipse?

I'm writing a python project in Eclipse with the PyDev plug-in, which contains multiple files.
However I'm used to using visual studio, where it'll automatically find the main function of a project and run the program from there.
Eclipse will always run the file I am currently editing (which usually is a file containing function that are called from the main function).
Is it possible to set which file should be run then clicking run? I've looked at the launch options under Project->Properties->PyDev, but didn't find what I was looking for.
When you press the Debug or Run button (Debug on the left) Eclipse tries to intelligently determine what to launch based on your current editor.
You can change the behaviour by editing Window -> Preferences -> Run/Debug -> Launching -> Launch Operation as pictured below.
The default of launching the current editor works well for some languages, but not as well for Python when every single file is itself a valid program to run. In your case I recommend changing to Always launch the previously launched application.
You can create a custom run configuration.
Right click on your project > run as > run configurations
From here is just a matter of choosing your project type on the left hand side and filling in the required information. You can click 'Run' to use your new configuration.
To get to this configuration again, you can click the 'Run' drop down button in the eclipse tool bar and see all of your run configurations.
Hope this helps!

User Setting for default save and open locations in VS Code

Is there a property name that can be added to the settings.json for the default open/save location?
There is not. The workaround would be to create a shortcut to launch vscode with the location of the folder you want to open on startup. You can append a path as argument for VS Code to open.
In addition, VS Code will always remember the last folder you opened and restore it when you restart.
I found a solution. Edit the shortcut of VSCode and change the startup location.
On Windows:
Open Start Menu and locate Visual Studio Code
Right click on the Visual Studio Code icon
Select More >
Select Open File Location
Right click on the shortcut icon and select Property
Change the Startup Location to what you want
Save files to a default location in local machine with VS Code on Mac:
Here is a screenshot of how to get into VS preferences. Click VS community (on your menu bar) and the drop-down menu will display preferences. Within preferences, click on projects then load/save and you will find the default load/save locations.

Commit from Eclipse's project explorer via egit with keyboard shortcut

In Preferences > General > Keys > Commit the binding shortcut is set to ⌘#. When is set to In Windows.
When executing the shortcut from the editor window, the currently edited file is the only preselected file (very sensible in my opinion).
Executing the short cut from the project explorer does nothing though. It should execute the same action as when I'm using the context menu, meaning it should preselect all files under the currently highlighted resource.
Is this a configuration issue or should a file a feature request?
Ensure Git is checked within the Command Groups Availability tab of the Window > Customize Perspective menu.