Programing

콘솔에서 시스템 쉘을 실행하기위한 Eclipse 플러그인이 있습니까?

lottogame 2020. 8. 13. 07:39
반응형

콘솔에서 시스템 쉘을 실행하기위한 Eclipse 플러그인이 있습니까? [닫은]


포함 된 콘솔에서 시스템 쉘을 실행하기위한 Eclipse 플러그인을 알고 계십니까? 굉장 할 것입니다. KDE의 파일 탐색기 인 Dolphin에는이 기능이 있습니다. F4 키를 누르면 현재 서있는 디렉토리에 콘솔이 표시됩니다.

작업중인 프로젝트 / 파일의 디렉토리에 쉘이있는 Eclipse에서 유사한 기능을 갖는 것은 멋질 것입니다.

이 플러그인이 있습니까?

그렇지 않다면 그러한 플러그인을 코딩하는 것이 너무 복잡할까요? 나는 이클립스 플러그인 개발에 대해 전혀 모른다.


존재하고 Eclipse에 내장되어 있습니다! 원격 시스템보기로 이동하면 "로컬"항목이 표시됩니다. "로컬 셸"을 마우스 오른쪽 단추로 클릭하고 "셸 시작"을 선택합니다.

프로젝트 네비게이터에서 직접 시작할 수 없습니다. 그러나 네비게이터에서 마우스 오른쪽 버튼을 클릭하고 "원격 시스템보기에 표시"를 선택할 수 있습니다. 여기에서 상위 폴더를 마우스 오른쪽 버튼으로 클릭하고 "Launch Shell"을 선택할 수 있습니다.

Aptana 에는 터미널보기와 터미널에서 선택한 파일을 여는 명령이 있습니다.


플러그인 (원격 시스템보기 플러그인 포함)이 필요하지 않습니다. 기본 플랫폼으로이 작업을 수행 할 수 있습니다. 외부 도구 구성을 작성하기 만하면됩니다. 시연 할 이미지를 추가했습니다.

색상 화살표가있는 외부 도구 구성 대화 상자의 Mac 스크린 샷

주황색 화살표 : 도구 모음의 외부 도구 버튼을 사용 하고을 선택 External Tools Configuration...합니다. 를 클릭 Program한 후 최대에 클릭 위의 New launch configuration아이콘입니다.

녹색 화살표 :Name 필드를 사용하고 새 도구의 이름을 "Launch Shell"과 같이 영리하게 지정합니다. 에서 Location영역 쉘 명령 등을 입력합니다 /bin/bash. 보다 일반적인 접근 방식은 ${env_var:SHELL}Mac에서 (그리고 Linux를 희망합니다) 기본 셸을 시작하는 것을 사용 하는 입니다. 그런 다음에서 Working Directory변수 ${project_loc}를 사용하여 기본 디렉토리를 현재 프로젝트 위치로 설정할 수 있습니다 . 즉, 도구를 시작할 때 탐색기의 활성 프로젝트 나 적절한 편집기 창에 커서가 있는지 확인해야합니다. 세 이하 Arguments영역 사용 -i대화 형 모드.

파란색 화살표 :Build 탭으로 전환 하고을 선택 취소 Build before launch합니다. 그런 다음 Common탭으로 전환 하고 클릭하여 즐겨 찾기 메뉴에 명령을 추가합니다. 이제 ApplyClose. 콘솔보기가 표시되는지 확인합니다 ( Window->Show View->Console). 패키지 또는 프로젝트 탐색기에서 프로젝트를 클릭하거나 관심있는 프로젝트에 대한 코드가있는 편집기 창을 클릭합니다. 그런 다음 외부 도구 아이콘을 클릭하고을 선택 Launch Shell하면 이제 콘솔보기에 대화 형 셸 창이 나타납니다.

이미지의 왼쪽 하단에서 tcsh 쉘이 작동하는 것을 볼 수 있습니다.

Windows 참고 : 이는 Windows 에서도 작동하지만 ${env_var:ComSpec}위치 필드에서 사용 하고 인수 필드를 비워 둘 수 있습니다.


Eclipse TCF 팀 은 방금 릴리스 터미널 (SSH, Telnet, 로컬)을 가지고 있습니다.

원래 이름이 TCF 터미널이었던 다음 TM 터미널로 이름이 변경되었습니다.

http://marketplace.eclipse.org/content/tcf-terminals

마지막으로 Windows 및 Linux 모두 지원

Windows에서 Git Bash에 대한 지원이 해결 되었습니다 . Bug 435014 .

이 플러그인은 Enide Studio 2014Enide 2015에 포함되어 있습니다.

터미널에 액세스하려면 창->보기 표시-> 터미널로 이동하거나 Ctrl+Alt+T


Eclipse 용 터미널 플러그인 은 명령 줄보기 (= INSIDE Eclipse)를 제공하지만 현재 Linux 및 Mac OS X에만 Windows가 없습니다. Windows의 경우 JW의 aproach를 사용하십시오.


(출처 : developerblogs.com )

업데이트 1 :
Windows 지원에 대해 작업 중입니다.이 문제 및 기본 구현을 참조하십시오 .

Update 2: Not working on it since Aug 2013.


Add C:\Windows\System32\cmd.exe as an external tool. Once run, you can then access it via the normal eclipse console.

http://www.avajava.com/tutorials/lessons/how-do-i-open-a-windows-command-prompt-in-my-console.html


(source: avajava.com)


I really like StartExplorer but it is a contextual launcher rather than in - IDE shell so not sure if that is what you want


Simply create a new external tool configuration (from Eclipse Run -> External Tools)

for example - To open Cygwin terminal on the current resource directory:

Location:

C:\cygwin\bin\mintty.exe

Working Directory:

${container_loc}

Arguments:

-i /Cygwin-Terminal.ico  
-"cygpath -p '${container_loc}' | xargs cd"

Aptana Studio 3 includes such terminal. I found it to be very similar to native terminal compared to what's mentioned in other answers.


The best solution I have been able to find is TCF Terminals 1.2 (Luna).

You start off with a Windows command prompt. 여기에 이미지 설명 입력

If you like git bash, you can get git bash going inside it like this: TCF 터미널 1.2가있는 Eclipse 및 Git Bash 실행 The trick is the command:

D:\Apps\Git\bin\sh.exe --login -i

Change this command path to wherever you installed git. The arguments --login -i are key.


... just a little bit late :) you might give a try at http://code.google.com/p/tarlog-plugins/. It gives you options like open shell and open explorer from Project Explorer context menu.

There's also http://sourceforge.net/projects/explorerplugin/ but it seems kind of stuck at 2009.


You can also use the Termial view to ssh/telnet to your local machine. Doesn't have that funny input box for commands.


I recommend EasyShell, which features 'open' (console), 'run', 'explore', and 'copy path'.


I wrote this to get a native shell...it uses the same GTK widget the gnome-terminal uses so the behavior should be nearly identical.

http://github.com/maihde/Eclipse-Terminal


In Eclipse 3.7, I found a terminal view plugin that I installed through Eclipse Marketplace. Details are as follow:

Local Terminal (Incubation) http://market.eclipsesource.com/yoxos/node/org.eclipse.tm.terminal.local.feature.group

A terminal emulation for local shells and external tools. Requires CDT Core 7.0 or later. Works on Linux, Solaris and Mac. Includes Source.

Side note, this terminal does not execute .bash_profile or .bashrc so you can do

source ~/.bash_profile

and (if this isn't sourced by `.bash_profile)

source ~/.bashrc

Update:

This is actually was base for Terminal plug-in for Eclipse fork. Quote from http://alexruiz.developerblogs.com/?p=2428

Uwe Stieber July 23, 2013 at 12:57 am

Alex, why not aiming for rejoining your work with the original TM Terminal? I’ve checked and haven’t found any bugzilla asking for missing features or pointing out bugs. There had been changes to the original Terminal control, so I’m not sure if all of your original reasons to clone it are still true.


I just found out about WickedShell, but it seems to work wrong with GNU/Linux and bash. Seems like some sort of encoding issue, all the characters in my prompt are displayed wrong.

어쨌든 작업에 가장 적합한 (유일한) 도구 인 것 같으므로 더 많은 테스트를 수행하고 충분히 좋은지 확인하겠습니다. 이 문제에 대해 개발자에게 연락하겠습니다.

참고 URL : https://stackoverflow.com/questions/1562600/is-there-an-eclipse-plugin-to-run-system-shell-in-the-console

반응형