重新安排Android Studio中的Logcat按钮

时间:2017-11-08 16:17:53

标签: android android-studio intellij-idea

例如,我想交换这两个按钮:

enter image description here

有可能吗?我正在使用Android Studio 3.0。

1 个答案:

答案 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)
   */

有关详细信息,请参阅来源:https://github.com/JetBrains/intellij-community/blob/master/platform/lang-api/src/com/intellij/execution/actions/ConsoleActionsPostProcessor.java

相关问题