答案 0 :(得分:1)
您可以尝试创建实现"com.intellij.consoleActionsPostProcessor"
扩展点的插件。
根据javadoc,他们可以做你想做的事:
/**
* Allows to adjust actions to use within the given console instance.
* <p/>
* {@code 'Adjust'} here stands for 'add', 'remove', 'change order' etc.
*
* @param console console instance which actions are being post-processed
* @param actions console actions that will be used by default
* @return actions to use within the given console instance (given actions may be returned by default)
*/