The text cannot be COPIED by double-clicking and PASTED on right-clicking when working on Git bash in Eclipse, similar to the usage in Git Bash Windows application, which saves much time.
Is there any solution or best terminal alternative integrated in Eclipse?
That does not seem to be supported by the Terminal component, part of CDT since Eclipse 2020-03, with code source now in org.eclipse.cdt.git/tree/terminal.
No issue has been mentioned in this bugzilla list, which means you would need to create one to mention this use case.
Related
I am wondering if there is a command similar to code ., but for eclipse.
I'm using a Windows 10 computer.
Yes, the command line lets you open files using the --launcher.openFile parameter, and I think it prompts you with the "open projects from file system" wizard when you give it a directory. I'm not sure it works as smoothly since Eclipse lets you use the same binary for more than one workspace.
https://wiki.eclipse.org/Eclipse/OpenFileFeature
I recently installed Git for Eclipse (EGit) and I have used some basic functions by right-click -> Team -> Add/Commit/Remove/Exclude/etc.
However, I would like to use some of the more complicated features of git, and command-line syntaxes. Is there a way to do this in Eclipse or set up EGit in command line?
This is not provided by EGit itself, but there are multiple options:
A generic command shell, see David's answer
Gonsole plugin, which provides some command completion and integration with EGit
I don't believe you can get direct access to a command prompt for egit. However, you could use one of the many plugins that create a command shell at a particular folder, so you can just type the git command you want. One of those is the PathTools plugin, which also lets you record specific command lines you can run on a shell.
Is it possible to use external command line tools in Netbeans?
Thank you.
After searching and searching and searching, this feature is just missing in netbeans although it would absolutely straightforward to implement and has been ask by user for 2 more than years...
Regards,
Stéphane
There is a Terminal window in NetBeans 7:
Open the menu, Window -> Output -> Terminal
What about using an Ant target? Ant files are quite comfortable to run from Netbeans.
<exec executable="${executable-full-path}" ...
The best option I've found is to use jmarsault's plugin that he calls NetBeans Command Shortcuts. This give you an icon in the command line where you can add command and terminal scripts to run. The display shows in the output window.
Installation files are available here and he has kept it up to date with the newest versions of NetBeans.
NetBeans Command Shortcut plugin
Installation:
Download the .nbm file for your version of NetBeans
Open Tools / Plugins / Downloaded / Add Plugins...
Select the .nbm file and allow the installation of the plugin.
In since at least version 9.0, there are two decent options:
Just create a script file. (I think you need the C++ plugin for this. Otherwise you have to create it outside NetBeans or as a text file.) In my case I created a JLinkGDBServer.sh that just executes JLinkGDBServer as a prerequisite to start an embedded debug session. This automatically sends the executable's output to a NetBeans terminal.
Add a tool to Tools/Options/Miscellaneous/SendTo. SendTo is a pop-up menu item for certain project entities, for example files but not the project. In my case, I could add a SendTo running the executable and use it by right-clicking on for example the .elf file (although for the GDB server I don't need any file name as an argument).
I'm using the Aptana plugin for Eclipse to do web development. Apparently spell checking is disabled in Aptana for performance reasons (see https://aptanastudio.tenderapp.com/discussions/questions/140-invoking-the-version-20-spell-checker).
Currently I drop to a shell and run a script that in turn runs aspell on all my *.html files, but occasionally I forget to do this before I publish. I've tried adding my script as an "external tools" command, but aspell doesn't behave nicely in an Eclipse console window. Besides, I still might forget to click it before a publish.
Ideally, I'd like to insert some sort of hook that would run this script before I trigger a file synchronize command, but I would appreciate any other suggestions to trigger an automatic spell check process.
My approach has been to publish using the command line only, that way I can sneak my spell check command in every time before I publish. I installed an "Open in Terminal" plugin for eclipse that makes it convenient to drop to a shell at the root of the web directory then execute this command.
I hope this is helpful to somebody.
use a separate spell checker
I'm using tinyspell and aptana studio 3 (it can check spellings as you type)
see this http://tinyspell.numerit.com/
On linux:
eclipse PathnameToWorkspace
works fine, and launches eclipse on the workspace.
I've never been able to figure out the MacOS moral equivalent, given the MacOS application tree structure.
I suspect this is not a hard problem.
./eclipse -data <workspace-path> (see also How do I run Eclipse in the Eclipse Wiki).
On my system there's a link to the eclipse binary from /Applications/eclipse/eclipse, and I find that just running that will start Eclipse with my default workspace.
You might also find the Eclipse binary in '/Applications/Eclipse.app/Contents/MacOS/eclipse'.
When I start Eclipse like this (from the command line) I find that my Mac will not always switch to the desktop where Eclipse is started, so that I will have to go hunt for the Eclipse window with Exposé/Misson Control (Ctrl-Up Arrow). – This is especially true when I'm have two monitors connected to my Mac.
Since I found typing the full path to eclipse annoying, I simply added a symlink to it from /opt/local/bin and made sure that directory is in my $PATH:
cd /opt/local/bin
sudo ln -s /Applications/eclipse/eclipse .
echo 'PATH="$PATH:/opt/local/bin' >>~/.bashrc
After that, just issuing the command eclipse (without the preceding /Applications/eclipse part) works as it should.
After doing lots of hit and try I have added following into my bash_profile and I am able to launch eclipse from terminal.
(Note: Eclipse is inside Application)
export PATH="$PATH:/Applications/Eclipse.app/Contents/MacOS"
Hope it will be helpful for beginner like me.