启动换行快捷方式在Intellij IDEA 15中不起作用

时间:2016-03-17 07:58:55

标签: java intellij-idea keyboard-shortcuts

我使用的是Mac OS,我已将Command + Shift映射到Start new line并且之前有效。

但是现在,当我在IDEA的编辑器中按下快捷键时,我没有得到回应。错误日志如下所示:java.lang.IllegalStateException: Current caret is defined, cannot operate on other ones.

详情如下:

java.lang.IllegalStateException: Current caret is defined, cannot operate on other ones
    at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:331)
    at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:324)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.isEnabled(EditorActionHandler.java:81)
    at schemely.repl.toolwindow.actions.REPLEnterAction.isEnabled(REPLEnterAction.java:39)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.isEnabledForCaret(EditorActionHandler.java:123)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.isEnabled(EditorActionHandler.java:136)
    at com.intellij.openapi.editor.actions.StartNewLineAction$Handler.isEnabledForCaret(StartNewLineAction.java:45)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.doIfEnabled(EditorActionHandler.java:108)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.access$000(EditorActionHandler.java:38)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler$2.perform(EditorActionHandler.java:84)
    at com.intellij.openapi.editor.impl.CaretModelImpl$3.run(CaretModelImpl.java:342)
    at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:422)
    at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:333)
    at com.intellij.openapi.editor.impl.CaretModelImpl.runForEachCaret(CaretModelImpl.java:324)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.isEnabled(EditorActionHandler.java:81)
    at com.intellij.openapi.editor.actionSystem.EditorActionHandler.isEnabled(EditorActionHandler.java:136)
    at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:118)
    at com.intellij.openapi.editor.actionSystem.EditorAction.updateForKeyboardAccess(EditorAction.java:122)
    at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:135)
    at com.intellij.openapi.actionSystem.AnAction.beforeActionPerformedUpdate(AnAction.java:246)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:111)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:622)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:485)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:215)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:622)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
2016-03-17 15:50:19,363 [3657174]  ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 15.0.4  Build #IU-143.2287.1 
2016-03-17 15:50:19,363 [3657174]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_40-release 
2016-03-17 15:50:19,363 [3657174]  ERROR - llij.ide.plugins.PluginManager - VM: OpenJDK 64-Bit Server VM 
2016-03-17 15:50:19,363 [3657174]  ERROR - llij.ide.plugins.PluginManager - Vendor: JetBrains s.r.o 
2016-03-17 15:50:19,363 [3657174]  ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X 
2016-03-17 15:50:19,363 [3657174]  ERROR - llij.ide.plugins.PluginManager - Last Action: ShowSettings 

以下是关于例外情况的一些讨论:Multicaret problems

评论:

  • 自安装以来它工作正常。
  • 编辑器指我编辑代码,配置文件等的窗口
  • 当我在编辑器中按下Command + Shift时,我收到了一次错误。
  • 我已经忘记了它什么时候不再工作......

感谢@yole,我确实通过安装一个名为 schemely 的第三方插件来解决这个问题。

1 个答案:

答案 0 :(得分:1)

您安装了第三方插件(方案),其中一个操作的执行不正确,违反了标准的IntelliJ IDEA行为。您可以通过禁用插件来解决问题。