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” 以指定您喜歡的終端類型。
-
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END