gpt4 book ai didi

java - 开始新行快捷方式在 Intellij IDEA 15 中不起作用

转载 作者:行者123 更新时间:2023-12-01 10:12:52 25 4
gpt4 key购买 nike

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

但是现在,当我在IDEA编辑器中按下快捷键时,没有任何反应。错误日志是这样的:java.lang.IllegalStateException:当前插入符号已定义,无法对其他插入符号进行操作。

详细信息是:

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的第三方插件遇到了这个问题。

最佳答案

您(有计划地)安装了一个第三方插件,该插件的其中一项操作的实现不正确,从而破坏了标准的 IntelliJ IDEA 行为。您可以通过禁用该插件来解决该问题。

关于java - 开始新行快捷方式在 Intellij IDEA 15 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36054605/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com