atom 运行代码的快捷键为:windows 和 linux:control + entermacos:command + enter按下快捷键将运行选定的代码块,如果文件未保存,atom 会提示保存。代码会在终端窗口中执行,用户可以在查看 > 切换终端命令中打开该窗口。
atom 运行代码的按键
快捷键:
control + enter (windows, linux)
command + enter (macos)
详细说明:
- 按下快捷键将运行当前文件中选定的代码块。
- 如果文件未保存,atom 会提示保存文件。
- 代码将在终端窗口中运行,该窗口可以通过 view > toggle terminal 命令打开。
- 终端窗口显示代码的输出和任何错误消息。
其他选项:
-
运行选定文本:
- 选择要运行的代码文本。
- 按快捷键或右键单击并选择 "run selection"。
-
运行整个文件:
- 按 control + command + m (windows, linux) 或 command + option + b (macos)。
-
更改运行代码的终端类型:
-
编辑 "settings.json" 文件并添加以下代码:
"terminal.integrated.shell.fontfamily": "your_font_family", "terminal.integrated.shellargs.linux": ["-c"], "terminal.integrated.shellargs.windows": ["cmd.exe"],
登录后复制 - 更改 "your_font_family" 以匹配您首选的字体。
- 更改 "terminal.integrated.shellargs.linux" 和 "terminal.integrated.shellargs.windows" 以指定您喜欢的终端类型。
-
以上就是atom运行代码的按键的详细内容,更多请关注代码网其它相关文章!
发表评论