【问题标题】:Hotkey for commenting ruby code in Aptana Studio 3 not Working with german keyboard用于在 Aptana Studio 3 中评论 ruby​​ 代码的热键不使用德语键盘
【发布时间】:2011-09-12 07:14:06
【问题描述】:

在 Aptana Studio 3(最新版本和 3 的所有先前版本)中,我无法通过键盘快捷键评论行。我有一个德语键盘布局。

默认快捷键是 CTRL + /,但这不起作用。即使在 Preferences/General/Keys 中设置快捷方式也不起作用。该命令称为 Python Toggle Comment。

使用 Commands 菜单并使用 Source -> Comments -> Comment Line / Selection 正确设置行。在这个菜单中,我还可以看到菜单项后面的热键 CTRL + /。

如果我可以使用热键,它将提高编写和测试代码的速度。我怎样才能做到这一点?

【问题讨论】:

    标签: ruby keyboard comments hotkeys aptana


    【解决方案1】:

    您可以尝试下载源卢布的副本,然后将键绑定编辑为适合您的。命令 > 源 > 编辑此捆绑包。它会尝试将捆绑包的 git 克隆到您的“Documents/Aptana Rubles/source.ruble”文件夹中。然后您可以编辑 commands/toggle_comment.rb 并将绑定更改为适合您的内容。

    【讨论】:

    • 不幸的是 git clone 不起作用('Grabbing bundle Source...' 遇到了问题。Git clone failed: Cloning into /home/user/Aptana Rubles/source.ruble... )。授予文件夹的所有权限 (777) 无济于事。互联网连接适用于 Aptana Studio(自动更新有效)。所以这就是为什么我不能尝试你的答案。
    • 嗯,你可以尝试手动克隆卢布,使用命令行 git 抓取它:cd /home/user/Aptana Rubles;git clone git://github.com/aptana/source.ruble.git
    • 啊,现在成功了。问题是代理(他不知道 git,所以我不得不使用 'git clone github.com/aptana/source.ruble.git' 手动获取 https-ressource 然后我将 cmd.key_binding = ["M1+/", "M1+7", "M1+M2+C"] 更改为 cmd.key_binding = ["M1+/", "M1+7", "M1+M2+C", "M1+#"]
    • 如果您无法连接到“git://github.com/...”。使用 http "git clone github.com/aptana/source.ruble.git" 尝试 git。如果您没有 git,请在 github.com/aptana/source.ruble 上下载 zip
    猜你喜欢
    • 2017-05-13
    • 2015-11-12
    • 2017-09-06
    • 2023-03-09
    • 1970-01-01
    • 1970-01-01
    • 2012-11-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多