【问题标题】:Is there a command for "Show Invisibles" in Atom?Atom 中是否有“显示不可见”的命令?
【发布时间】:2014-05-18 00:32:50
【问题描述】:

是否有可用于键映射的命令来切换 Atom 编辑器中不可见的显示。显示/隐藏不可见命令?

我会去哪里寻找这样的命令?

【问题讨论】:

    标签: keymapping atom-editor


    【解决方案1】:

    对于 Linux 和 Windows:
    1) 点击 Ctrl+Shift+P 并输入keymap
    2) 选择Application: open your keymap 并将以下两行添加到该文件中:

    'body':
      'shift-ctrl-i': 'window:toggle-invisibles'
    

    或者您喜欢的任何不冲突的击键组合,而不是shift-ctrl-i


    注意
    更多详情,请阅读documentation on CSON fromat (season)'s implementaton of cson

    【讨论】:

      【解决方案2】:

      您可以打开命令面板(Cmd + Shift + P)并搜索Window: Toggle Invisibles 命令。选择该命令应该打开/关闭不可见。

      【讨论】:

        【解决方案3】:

        以下是我使用 Mac 版本的方法:

        '.editor':
           'ctrl-i': 'window:toggle-invisibles'
        

        【讨论】:

        • 当我在 keymap.cson 中将 '.editor' 替换为 'body' 时有效
        • 是的,这对我有用:body:'ctrl-i': 'window:toggle-invisibles' in keymap.cson 以及(在 Atom > Keymap... 中找到)跨度>
        • 嗯,这似乎只适用于我的其他文件类型。除了 python (.py)。我检查了 python 语言设置以确保设置了“显示不可见”,但这仍然没有帮助。
        【解决方案4】:

        对于 Mac 上的 Atom 1.58.0,打开设置、键绑定,然后单击搜索框上方的“您的键盘映射文件”链接。将以下两行添加到文件底部并保存:

        'atom-text-editor':
          'ctrl-i': 'window:toggle-invisibles'
        

        按 Ctrl 键,然后 i 将打开和关闭不可见字符

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2023-03-25
          • 1970-01-01
          • 2010-11-03
          • 2014-08-03
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多