Clean and build an Eclipse java project with one click

后端 未结 5 1988
孤街浪徒
孤街浪徒 2021-02-05 18:55

Is it possible to clean and build a java project in Eclipse with one click? I don\'t want to go to Project -> clean -> OK and than to project menu \'Build project\'

5条回答
  •  没有蜡笔的小新
    2021-02-05 19:34

    In Project->Clean I select "Clean projects selected below", select my project(s) and check "Start a build immediately" with "Build only selected projects".

    Then go to Window->Preferences->General->Keys, search "Build clean" and enter my own binding for this command. For example, Ctrl + D.

    Then, when I press Ctrl + D and Enter I have clean and build.

提交回复
热议问题