Launch terminal from eclipse

前端 未结 1 1576
长发绾君心
长发绾君心 2021-02-10 18:04

I recently switched to Eclipse (Helios) for my programming needs, and I like it very much.

There is just on thing that is driving me crazy, how can I launch (compile and

1条回答
  •  礼貌的吻别
    2021-02-10 18:58

    It's all about defining the External Tool correctly.

    For example, the following should work if your selected file is a Unix executable.

    1. Open a new External Tool configuration.
    2. Set the location to /usr/bin/open
    3. Set Working directory as ${selected_resource_loc}
    4. Set the arguments to -a /Applications/Utilities/Terminal.app ${selected_resource_loc}

    When you run make sure you select "src" enter image description here

    This should work. You could improve it further. You could even write an AppleScript that would do that and run it using osascript.

    0 讨论(0)
提交回复
热议问题