Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我设置keymap.cson了这个条目。在调色板中,我可以看到F5与此命令相关联,但按下F5不会触发它
keymap.cson
F5
'.workspace .editor': 'F5': 'runner:run'
是的,Atom 支持功能键。键的名称区分大小写,名称F5为f5,注意小写的“f”。以下应该有效:
f5
'atom-workspace atom-text-editor': 'f5': 'runner:run'
另外,请注意,您可能希望替换atom-workspace atom-text-editor为 just atom-workspace,除非您不希望在树视图、Markdown 预览或任何其他非编辑器视图中执行命令。
atom-workspace atom-text-editor
atom-workspace