I do open folder in mc from nautilus in the ubuntu 12.04 by right mouse button clicking. But in 16.04 I have no nautilus-open-terminal package in the Synaptic. Instead gnome-terminal is installed. So I have "Open in terminal" in the popup menu after right click in nautilus but have no "Open in midnight commander". Yes, I know about opening terminal and typing mc but I'm tooooo lazy...
Edit menu and add a command "Open in midnight commander"; the command is gnome-terminal -e mc.
More details how to edit menu. Install nautilus-actions package in Synaptic. Run the Nautilus-Actions Configuration Tool in terminal with nautilus-actions-config-tool. Add new action with the name Open in mc. Enable only Display item in location context menu switch. Open Command tab. Set path to gnome-terminal -e mc and Working directory to %f. At last you can unselect Create a root Nautilus-Action menu in the preference dialog if you prefer to have new commands in the same popup menu instead of submenu.
Related
I was wondering if there was a way to have Visual Studio Code open a file when accessed by Cygwin. For instance, when using an alias to change directories and open a Verilog file, have that file be opened within Visual Studio Code instead. I have very limited experience in Linux, and it looks like Visual Studio Code is easier to navigate/edit scripts, though that could be wrong.
One way to open a windows command (that is not in the path) from the cygwin terminal is to create an shell alias to start VSCode or Visual Studio with a filename from the cygwin terminal. Add a line to your .bashrc like:
alias vscode=<path to vscode>
Find <path to vscode> by right clicking on the link you use to open VSCode or Visual Studio using the desktop or start menu, and select "More -> Open file location". This will open an explorer window with a shortcut highlighted. Right click on it, and select "Properties". In properties click on the "Open file location" button. In the resulting explorer windows, use shift-right click on the highlighted file and select "Copy as path".
Back in cygwin, enter
cygpath -wa <paste>
(In the cygwin terminal, use "Right click -> Paste" or shift-ctrl-C to paste). Then use line editing to change the double quotes to single quotes and run the command. This shows you the string to use as <path to vscode> in the alias command. You must restart the cygwin terminal for the alias to be available.
To use this alias, enter e.g.
vscode <filename.ext>
to open the file is VS Code or Visual Studio. I use similar alias to open an explorer window, or my browser with an html file, or to open a file in Notepad++.
I've tried to get an IDE for Perl 5 but with just while line
print "8";
it cycles many minutes and does nothing after all.
I tested this on Windows 10. First I installed the community edition of IntelliJ IDEA on Windows from here. Then I opened the IDE and installed the Perl plugin as described here :
Then configured the plugin by going to Settings->Languages & Frameworks->Perl5 :
Click the cogwheel at the right side of Perl5 Interpreter and select your installed Perl exe (I am using Strawberry Perl):
Close the settings dialog and choose File->New project.. and select Perl5 from the list:
click Next and then choose the Perl interpreter to use:
Choose a project name and its location:
Click the name of the project in the project view at the left side of the window, and choose File->New->Perl5 file. Type in the name of the script, and choose Script from the list :
Type in the hello.pl script in the editor:
Select Run->Run.. from the menu, and click Add new.. configuration:
In the dialog enter a new name for the run configuration, and enter the location of the script:
Then click Run and you should get output like this:
Description:
When i open a selected file from windows explorer using right click menu with "Open with VS Code", VSCode only open the file i selsected. It did't reopen the previous files like sublime.
Is there any way to change this behavior?
already set "window.restoreWindows": "all"
OS: Windows 10 1803
VSCode 1.24.0
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.
What I have tried:
I have tried windows > IDE tools > palette
The palette editor appears in a separate window in netbeans and I simply cannot click on that or drag anything.
I have reopened my project, it doesn't work
I have restarted netbeans, gave ctrl+shift+8, yet the palette editor is not in the proper place.
Edit:
I have fixed this.
In netbeans, the procedure is windows > reset windows
Check this out. there is a Reset palette to default settings section.
Also if you mean that is on a pop-up window, try to right click it and Dock it. Netbeans allows you to reorder windows, and make them float (Alt +Shift +D) documented here.