我已经为字符"({[和他们的对应方设置了自动配对的灯光表(重要注意:我使用德国键盘布局)。这是通过将[:app :lt.objs.settings/pair-keymap-diffs]添加到我的用户行为中来实现的("的技巧)和
[:editor "alt-[" (:editor.open-pair "[")]
[:editor "alt-{" (:editor.open-pair "{")]
[:editor "alt-]" (:editor.close-pair "]")]
[:editor "alt-}" (:editor.close-pair "}")]给我的用户键盘地图。当我现在键入一个{时,在编辑器中插入一个[]。我该如何正确地设置它?提前谢谢。
发布于 2015-12-22 11:41:08
正确的答案可以在这个github问题中找到。我从密钥映射中删除了上述代码,并将以下代码添加到我的行为中:
;; Normal brackets autoclose
[:app :lt.objs.editor/load-addon ["edit/closebrackets.js"]]
[:editor :lt.objs.editor/set-codemirror-flags {:autoCloseBrackets true}]您可能需要删除可重定向的自动关闭插件:
[:editor :-lt.objs.settings/pair-keymap-diffs]https://stackoverflow.com/questions/34403885
复制相似问题