当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] Windows PowerShell ISE 的键盘快捷键

作者:精品下载站 日期:2024-12-14 20:29:54 浏览:14 分类:玩电脑

Windows PowerShell ISE 的键盘快捷键


使用以下键盘快捷键在 Windows PowerShell 集成脚本环境 (ISE) 中执行操作。 Windows PowerShell ISE 作为 Windows Server 和 Windows 客户端操作系统的一部分提供。

用于编辑文本的键盘快捷键

编辑文本时可以使用以下键盘快捷键。

Action Keyboard Shortcuts Use in Help F1 Script Pane Important: You can specify that F1 help comes from Microsoft Learn or downloaded Help (see Update-Help). To select, click Tools, Options, then on the General Settings tab, set or clear Use local help content instead of online content. Select All CTRL+A Script Pane Copy CTRL+C Script Pane, Command Pane, Output Pane Cut CTRL+X Script Pane, Command Pane Expand or Collapse Outlining CTRL+M Script Pane Find in Script CTRL+F Script Pane Find Next in Script F3 Script Pane Find Previous in Script SHIFT+F3 Script Pane Find Matching Brace CTRL+] Script Pane Paste CTRL+V Script Pane, Command Pane Make Lowercase CTRL+U Script Pane, Command Pane Make Uppercase CTRL+SHIFT+U Script Pane, Command Pane Redo CTRL+Y Script Pane, Command Pane Replace in Script CTRL+H Script Pane Save CTRL+S Script Pane Select All CTRL+A Script Pane, Command Pane, Output Pane Show Snippets CTRL+J Script Pane, Command Pane Undo CTRL+Z Script Pane, Command Pane Show Intellisense Help CTRL+Space Script Pane Delete word to left CTRL+Backspace Script Pane Delete word to right CTRL+Delete Script Pane

用于运行脚本的键盘快捷键

在脚本窗格中运行脚本时,可以使用以下键盘快捷键。

New

CTRL+N

Open

CTRL+O

Run

F5

Run Selection

F8

Stop Execution

CTRL+BREAK。当上下文明确时(没有选择文本时),可以使用 CTRL+C。

Tab (to next script)

CTRL+TAB 注意: 仅当您打开一个 Windows PowerShell 选项卡或打开多个 Windows 时,按 Tab 转到下一个脚本才有效PowerShell 选项卡打开,但焦点位于脚本窗格中。

Tab (to previous script)

CTRL+SHIFT+TAB 注意: 当您只打开一个 Windows PowerShell 选项卡时,按 Tab 切换到上一脚本即可,或者如果您打开了多个 Windows PowerShell 选项卡,并且焦点位于脚本窗格中。

用于自定义视图的键盘快捷键

您可以使用以下键盘快捷键自定义 Windows PowerShell ISE 中的视图。可以从应用程序中的所有窗格访问它们。

Go to Command (v2) or Console (v3 and later) Pane

CTRL+D

Go to Output Pane (v2 only)

CTRL+SHIFT+O

Go to Script Pane

CTRL+I

Show Script Pane

CTRL+R

Hide Script Pane

CTRL+R

Move Script Pane Up

CTRL+1

Move Script Pane Right

CTRL+2

Maximize Script Pane

CTRL+3

Zoom In

CTRL++

Zoom Out

CTRL+-

用于调试脚本的键盘快捷键

调试脚本时可以使用以下键盘快捷键。

Action Keyboard Shortcut Use in Run/Continue F5 Script Pane, when debugging a script Step Into F11 Script Pane, when debugging a script Step Over F10 Script Pane, when debugging a script Step Out SHIFT+F11 Script Pane, when debugging a script Display Call Stack CTRL+SHIFT+D Script Pane, when debugging a script List Breakpoints CTRL+SHIFT+L Script Pane, when debugging a script Toggle Breakpoint F9 Script Pane, when debugging a script Remove All Breakpoints CTRL+SHIFT+F9 Script Pane, when debugging a script Stop Debugger SHIFT+F5 Script Pane, when debugging a script

笔记

在 Windows PowerShell ISE 中调试脚本时,您还可以使用专为 Windows PowerShell 控制台设计的键盘快捷键。要使用这些快捷方式,您必须在命令窗格中键入快捷方式,然后按 ENTER。

Action Keyboard Shortcut Use in Continue C Console Pane, when debugging a script Step Into S Console Pane, when debugging a script Step Over V Console Pane, when debugging a script Step Out O Console Pane, when debugging a script Repeat Last Command (for Step Into or Step Over) ENTER Console Pane, when debugging a script Display Call Stack K Console Pane, when debugging a script Stop Debugging Q Console Pane, when debugging a script List the Script L Console Pane, when debugging a script Display Console Debugging Commands H or ? Console Pane, when debugging a script

Windows PowerShell 选项卡的键盘快捷键

使用 Windows PowerShell 选项卡时可以使用以下键盘快捷键。

Close PowerShell Tab

CTRL+W

New PowerShell Tab

CTRL+T

Previous PowerShell tab

CTRL+SHIFT+TAB。仅当任何 Windows PowerShell 选项卡上均未打开文件时,此快捷方式才有效。

Next Windows PowerShell tab

CTRL+TAB。仅当任何 Windows PowerShell 选项卡上均未打开文件时,此快捷方式才有效。

用于启动和退出的键盘快捷键

您可以使用以下键盘快捷键退出 Windows PowerShell ISE 或在 ISE 外部启动新的 Windows PowerShell 会话。

Exit

ALT+F4 关闭 ISE。

Start PowerShell.exe

CTRL+SHIFT+P 在 ISE 外部打开一个新的 Windows PowerShell 会话。

参见

  • PowerShell 杂志:Windows PowerShell ISE 键盘快捷键的完整列表

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯