Web console keyboard shortcuts - Firefox Developer Tools 编辑
Command | Windows | macOS | Linux |
---|---|---|---|
Open the Web Console | Ctrl + Shift + K | Cmd + Opt + K | Ctrl + Shift + K |
Search in the message display pane | Ctrl + F | Cmd + F | Ctrl + F |
Open the object inspector pane | Ctrl + Click | Ctrl + Click | Ctrl + Click |
Clear the object inspector pane | Esc | Esc | Esc |
Focus on the command line | Ctrl + Shift + K | Cmd + Opt + K | Ctrl + Shift + K |
Clear output | Ctrl + Shift + L | Ctrl + L From Firefox 67: Cmd + K | Ctrl + Shift + L |
Command line interpreter
These shortcuts apply when you're in the command line interpreter.
Command | Windows | macOS | Linux |
---|---|---|---|
Scroll to start of console output (only if the command line is empty) | Home | Home | Home |
Scroll to end of console output (only if the command line is empty) | End | End | End |
Page up through console output | Page up | Page up | Page up |
Page down through console output | Page down | Page down | Page down |
Go backward through command history | Up arrow | Up arrow | Up arrow |
Go forward through command history | Down arrow | Down arrow | Down arrow |
Initiate reverse search through command history/step backwards through matching commands | F9 | Ctrl + R | F9 |
Step forward through matching command history (after initiating reverse search) | Shift + F9 | Ctrl + S | Shift + F9 |
Move to the beginning of the line | Home | Ctrl + A | Ctrl + A |
Move to the end of the line | End | Ctrl + E | Ctrl + E |
Execute the current expression | Enter | Return | Enter |
Add a new line, for entering multiline expressions | Shift + Enter | Shift + Return | Shift + Enter |
Autocomplete popup
These shortcuts apply while the autocomplete popup is open:
Command | Windows | macOS | Linux |
---|---|---|---|
Choose the current autocomplete suggestion | Tab | Tab | Tab |
Cancel the autocomplete popup | Esc | Esc | Esc |
Move to the previous autocomplete suggestion | Up arrow | Up arrow | Up arrow |
Move to the next autocomplete suggestion | Down arrow | Down arrow | Down arrow |
Page up through autocomplete suggestions | Page up | Page up | Page up |
Page down through autocomplete suggestions | Page down | Page down | Page down |
Scroll to start of autocomplete suggestions | Home | Home | Home |
Scroll to end of autocomplete suggestions | End | End | End |
Global shortcuts
These shortcuts work in all tools that are hosted in the toolbox.
Command | Windows | macOS | Linux |
---|---|---|---|
Increase font size | Ctrl + + | Cmd + + | Ctrl + + |
Decrease font size | Ctrl + - | Cmd + - | Ctrl + - |
Reset font size | Ctrl + 0 | Cmd + 0 | Ctrl + 0 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论