- Exploring the Windows PowerShell ISE
- Menu Bar
- Windows PowerShell Tabs
- Toolbar
- Script Tab
- Script Pane
- Console Pane
- Status Bar
- Text-Size Slider
- PowerShell_ise PowerShell_ise
- Использование PowerShell.exe Using PowerShell.exe
- Комментарии Remarks
- The Windows PowerShell ISE
- Support
- Key Features
- To start the Windows PowerShell ISE
- To get Help in the Windows PowerShell ISE
- Новые возможности интегрированной среды сценариев Windows PowerShell 5.0 What’s New in the Windows PowerShell 5.0 ISE
- Описание компонента Feature description
- технология IntelliSense IntelliSense
- Фрагменты кода Snippets
- Дополнительные средства Add-on tools
- Перезапуск диспетчера и автосохранение Restart manager and auto-save
- Список недавно использовавшихся элементов Most-recently used list
- Область консоли Console Pane
- Параметры командной строки Command-line switches
- Новые возможности редактора New editor features
- Новое окно справки New Help viewer window
- Командлет Show-Command Show-Command cmdlet
Exploring the Windows PowerShell ISE
You can use the Windows PowerShell Integrated Scripting Environment (ISE) to create, run, and debug commands and scripts. The Windows PowerShell ISE consists of the menu bar, Windows PowerShell tabs, the toolbar, script tabs, a Script Pane, a Console Pane, a status bar, a text-size slider and context-sensitive Help.
Menu Bar
The menu bar contains the File, Edit, View, Tools, Debug, Add-ons, and Help menus. The buttons on the menus allow you to perform tasks related to writing and running scripts and running commands in the Windows PowerShell ISE. Additionally, an add-on tool may be placed on the menu bar by running scripts that use the The ISE Object Model Hierarchy.
Windows PowerShell Tabs
A Windows PowerShell tab is the environment in which a Windows PowerShell script runs. You can open new Windows PowerShell tabs in the Windows PowerShell ISE to create separate environments on your local computer or on remote computers. You may have a maximum of eight PowerShell tabs simultaneously open.
Toolbar
The following buttons are located on the toolbar.
Button | Function |
---|---|
New | Opens a new script. |
Open | Opens an existing script or file. |
Save | Saves a script or file. |
Cut | Cuts the selected text and copies it to the clipboard. |
Copy | Copies the selected text to the clipboard. |
Paste | Pastes the contents of the clipboard at the cursor location. |
Clear Output Pane | Clears all content in the Output Pane. |
Undo | Reverses the action that was just performed. |
Redo | Performs the action that was just undone. |
Run Script | Runs a script. |
Run Selection | Runs a selected portion of a script. |
Stop Execution | Stops a script that is running. |
New Remote PowerShell Tab | Creates a new PowerShell Tab that establishes a session on a remote computer. A dialog box appears and prompts you to enter details required to establish the remote connection. |
Start PowerShell.exe | Opens a PowerShell Console. |
Show Script Pane Top | Moves the Script Pane to the top in the display. |
Show Script Pane Right | Moves the Script Pane to the right in the display. |
Show Script Pane Maximized | Maximizes the Script Pane. |
Script Tab
Displays the name of the script you are editing. You can click a script tab to select the script you want to edit.
When you point to the script tab, the fully qualified path to the script file appears in a tooltip.
Script Pane
Allows you to create and run scripts. You can open, edit and run existing scripts in the Script Pane. For more information, see How to Write and Run Scripts in the Windows PowerShell ISE.
Console Pane
Displays the results of the commands and scripts you have run. You can run commands in the Console pane. You can also copy and clear the contents in the Console Pane.
For more information, see the following articles:
Status Bar
Allows you to see whether the commands and scripts that you run are complete. The status bar is at the very bottom of the display. Selected portions of error messages are displayed on the status bar.
Text-Size Slider
Increases or decreases the size of the text on the screen.
PowerShell_ise PowerShell_ise
Интегрированная среда сценариев (ISE) Windows PowerShell — это графическое приложение, позволяющее читать, писать, выполнять, отлаживать и тестировать сценарии и модули в среде с графическим интерфейсом. Windows PowerShell Integrated Scripting Environment (ISE) is a graphical host application that enables you to read, write, run, debug, and test scripts and modules in a graphic-assisted environment. Основные функции, такие как IntelliSense, команда «показывать-Command», фрагменты кода, заполнение нажатием клавиши TAB, выделение синтаксиса, визуальная отладка и контекстная справка, обеспечивают широкие возможности работы с скриптами. Key features such as IntelliSense, Show-Command, snippets, tab completion, syntax-coloring, visual debugging, and context-sensitive Help provide a rich scripting experience.
Использование PowerShell.exe Using PowerShell.exe
Средство PowerShell_ISE.exe запускает сеанс интегрированной среды сценариев Windows PowerShell. The PowerShell_ISE.exe tool starts a Windows PowerShell ISE session. При использовании PowerShell_ISE.exe можно использовать его необязательные параметры, чтобы открыть файлы в интегрированной среде сценариев Windows PowerShell или запустить сеанс интегрированной среды сценариев Windows PowerShell без профиля или с многопоточным апартаментом. When you use PowerShell_ISE.exe, you can use its optional parameters to open files in Windows PowerShell ISE or to start a Windows PowerShell ISE session with no profile or with a multithreaded apartment.
Чтобы запустить сеанс интегрированной среды сценариев Windows PowerShell в окне командной строки, в Windows PowerShell или в меню » Пуск «, введите: To start a Windows PowerShell ISE session in a Command Prompt window, in Windows PowerShell, or at the Start menu, type:
Чтобы открыть скрипт (PS1), модуль скрипта (PSM1), манифест модуля (. PSD1), XML-файл или любой другой поддерживаемый файл в интегрированной среде сценариев Windows PowerShell, введите: To open a script (.ps1), script module (.psm1), module manifest (.psd1), XML file, or any other supported file in Windows PowerShell ISE, type:
В Windows PowerShell 3,0 можно использовать необязательный параметр File , как показано ниже. In Windows PowerShell 3.0, you can use the optional File parameter as follows:
Чтобы запустить сеанс интегрированной среды сценариев Windows PowerShell без профилей Windows PowerShell, используйте параметр- Profile . To start a Windows PowerShell ISE session without your Windows PowerShell profiles, use the NoProfile parameter. (Параметр- Profile появился в Windows PowerShell 3,0.) введите: (The NoProfile parameter is introduced in Windows PowerShell 3.0.), type:
Чтобы просмотреть файл справки PowerShell_ISE.exe, введите: To see the PowerShell_ISE.exe help file, type:
Комментарии Remarks
Полный список параметров командной строки PowerShell_ISE.exe см. в разделе about_PowerShell_Ise.Exe. For a complete list of the PowerShell_ISE.exe command-line parameters, see about_PowerShell_Ise.Exe.
Дополнительные сведения о других способах запуска Windows PowerShell см. в разделе Запуск Windows PowerShell. For information about other ways to start Windows PowerShell, see Starting Windows PowerShell.
Windows PowerShell выполняется в варианте установки Server Core в операционных системах Windows Server. Windows PowerShell runs on the Server Core installation option of Windows Server operating systems. Однако, поскольку интегрированная среда сценариев Windows PowerShell требует графического пользовательского интерфейса, она не выполняется в установках Server Core. However, because Windows PowerShell ISE requires a graphic user interface, it does not run on Server Core installations.
The Windows PowerShell ISE
The Windows PowerShell Integrated Scripting Environment (ISE) is a host application for Windows PowerShell. In the ISE, you can run commands and write, test, and debug scripts in a single Windows-based graphic user interface. The ISE provides multiline editing, tab completion, syntax coloring, selective execution, context-sensitive help, and support for right-to-left languages. Menu items and keyboard shortcuts are mapped to many of the same tasks that you would do in the Windows PowerShell console. For example, when you debug a script in the ISE, you can right-click on a line of code in the edit pane to set a breakpoint.
Support
The ISE was first introduced with Windows PowerShell V2 and was re-designed with PowerShell V3. The ISE is supported in all supported versions of Windows PowerShell up to and including Windows PowerShell V5.1.
The PowerShell ISE is no longer in active feature development. As a shipping component of Windows, it continues to be officially supported for security and high-priority servicing fixes. We currently have no plans to remove the ISE from Windows.
There is no support for the ISE in PowerShell v6 and beyond. Users looking for replacement for the ISE should use Visual Studio Code with the PowerShell Extension.
Key Features
Key features in Windows PowerShell ISE include:
- Multiline editing: To insert a blank line under the current line in the Command pane, press SHIFT + ENTER .
- Selective execution: To run part of a script, select the text you want to run, and then click the Run Script button. Or, press F5 .
- Context-sensitive help: Type Invoke-Item , and then press F1 . The Help file opens to the article for the Invoke-Item cmdlet.
The Windows PowerShell ISE lets you customize some aspects of its appearance. It also has its own Windows PowerShell profile script.
To start the Windows PowerShell ISE
Click Start, select Windows PowerShell, and then click Windows PowerShell ISE. Alternately, you can type powershell_ise.exe in any command shell or in the Run box.
To get Help in the Windows PowerShell ISE
On the Help menu, click Windows PowerShell Help. Or, press F1 . The file that opens describes Windows PowerShell ISE and Windows PowerShell, including all the help available from the Get-Help cmdlet.
Новые возможности интегрированной среды сценариев Windows PowerShell 5.0 What’s New in the Windows PowerShell 5.0 ISE
В этой статье описаны новые и обновленные функции, представленные в версии 5.0 интегрированной среды сценариев (ISE) Windows PowerShell. This article explains the new and updated features that have been introduced in version 5.0 of the Windows PowerShell Integrated Scripting Environment (ISE).
Функции для ISE PowerShell больше не разрабатываются. The PowerShell ISE is no longer in active feature development. Как компонент доставки Windows эта среда по-прежнему официально поддерживается для внесения наиболее важных исправлений, связанных с безопасностью и обслуживанием. As a shipping component of Windows, it continues to be officially supported for security and high-priority servicing fixes. Пока что мы не планируем удалять ISE из Windows. We currently have no plans to remove the ISE from Windows.
ISE не поддерживается в PowerShell версии 6 и более поздних версиях. There is no support for the ISE in PowerShell v6 and beyond. Пользователям, которые ищут замену ISE, следует использовать Visual Studio Code с расширением PowerShell. Users looking for replacement for the ISE should use Visual Studio Code with the PowerShell Extension.
Описание компонента Feature description
Интегрированная среда сценариев Windows PowerShell — это ведущее приложение, позволяющее писать, выполнять и тестировать сценарии и модули в удобной среде с графическим интерфейсом. The Windows PowerShell ISE is a host application that enables you to write, run, and test scripts and modules in a graphical and intuitive environment. Такие важные возможности, как цветовая разметка синтаксиса, автозаполнение по нажатию клавиши TAB, визуальная отладка, совместимость с Юникодом и контекстная справка делают работу со сценариями более удобной. Key features such as syntax-coloring, tab completion, visual debugging, Unicode compliance, and context-sensitive Help provide a rich scripting experience.
Следующая таблица содержит новые и измененные функции для этого выпуска интегрированной среды сценариев Windows PowerShell в Windows PowerShell. The following table lists the new and changed features for this release of Windows PowerShell ISE in Windows PowerShell.
технология IntelliSense IntelliSense
Добавлен в интегрированной среде сценариев 3.0 Added in ISE 3.0
IntelliSense — это средство для автоматического дополнения, являющееся частью интегрированной среды сценариев Windows PowerShell. IntelliSense is an automatic-completion assistance feature that is part of Windows PowerShell ISE. По мере набора IntelliSense отображает активные меню с подходящими командлетами, параметрами, значениями параметров, файлами и папками. IntelliSense displays clickable menus of potentially matching cmdlets, parameters, parameter values, files, or folders as you type.
Какой эффект дает это изменение? What value does this change add?
С появлением IntelliSense в интегрированной среде сценариев Windows PowerShell стало удобнее находить командлеты и проверять синтаксис при создании скриптов. With the addition of IntelliSense, it’s easier to discover cmdlets and syntax when you use Windows PowerShell ISE to create scripts. Интегрированная среда сценариев Windows PowerShell позволяет также изучать Windows PowerShell при создании новых сценариев. You can also use Windows PowerShell ISE to learn Windows PowerShell while you create new scripts.
Что работает иначе? What works differently?
При вводе командлетов в интегрированной среде сценариев Windows PowerShell отображается прокручиваемое и активное меню, позволяющее просматривать и выбирать соответствующие команды. When you type cmdlets in the Windows PowerShell ISE, a scrollable and clickable menu displays, allowing you to browse and select the appropriate commands.
Фрагменты кода Snippets
Добавлен в интегрированной среде сценариев 3.0 Added in ISE 3.0
Фрагменты — это короткие участки кода Windows PowerShell, которые можно легко вставить в сценарии, создаваемые в интегрированной среде сценариев Windows PowerShell. Snippets are short sections of Windows PowerShell code that you can insert into the scripts you create in Windows PowerShell ISE. Интегрированная среда сценариев Windows PowerShell включает стандартный набор фрагментов. Windows PowerShell ISE comes with a default set of snippets. При работе в интегрированной среде сценариев Windows PowerShell можно добавлять фрагменты кода с помощью командлета New-Snippet . You can add snippets by using the New-Snippet cmdlet while working in Windows PowerShell ISE.
Какой эффект дает это изменение? What value does this change add?
С помощью фрагментов можно быстро составлять и создавать сценарии для автоматизации среды. By using snippets, you can quickly assemble and create scripts to automate your environment.
Что работает иначе? What works differently?
Чтобы использовать фрагменты кода в Windows PowerShell версии 3.0 и выше, щелкните Запустить фрагменты в меню Правка или нажмите клавиши CTRL + J . To use snippets in Windows PowerShell 3.0 or later, on the Edit menu, click Start Snippets , or press Ctrl + J .
Дополнительные средства Add-on tools
Добавлено в PowerShell 3.0 Added in PowerShell 3.0
Интегрированная среда сценариев Windows PowerShell теперь поддерживает надстройки с использованием объектной модели. Windows PowerShell ISE now supports add-on tools using the object model. Эти надстройки являются элементами управления Windows Presentation Foundation (WPF), отображаемыми в консоли виде вертикальной или горизонтальной панели. These add-ons are Windows Presentation Foundation (WPF) controls that are displayed as a vertical or horizontal pane in the console. Если область содержит несколько дополнительных средств, они отображаются на вкладках. Multiple add-on tools in a pane are displayed as a tabbed control. Можно также добавлять и удалять дополнительные средства сторонних производителей. You can also add or remove add-on tools that are produced by non-Microsoft parties. Дополнительные сведения см. в статье о предназначении объектной модели интегрированной среды сценариев Windows PowerShell. For more information, see The Purpose of the Windows PowerShell ISE Scripting Object Model.
Какой эффект дает это изменение? What value does this change add?
Дополнительные компоненты позволяют расширить и настроить интегрированную среду сценариев Windows PowerShell с помощью средств для оптимизации работы со скриптами. Add-ons allow you to extend and customize Windows PowerShell ISE with tools that add functionality and enhance your scripting experience.
Что работает иначе? What works differently?
Интегрированная среда сценариев Windows PowerShell 3.0 и более поздних версий содержит дополнительный компонент Команды. Windows PowerShell ISE 3.0 and later come with the Commands add-on. Компонент Команды позволяет параллельно просматривать командлеты и справку для них в областях Сценарий и Консоль. The Commands add-on allows you to browse cmdlets, and access help about the cmdlets side-by-side with the Script and Console Panes.
Другие дополнительные средства можно найти с помощью команды Перейти на сайт дополнительных компонентов в меню Дополнительные компоненты. Additional add-ons can be found by using the Open Add-on Tools Website command on the Add-ons menu.
Перезапуск диспетчера и автосохранение Restart manager and auto-save
Добавлено в PowerShell 3.0 Added in PowerShell 3.0
Интегрированная среда сценариев Windows PowerShell теперь автоматически сохраняет открытые сценарии в отдельном расположении каждые две минуты. Windows PowerShell ISE now automatically saves your open scripts every two minutes, in a separate location. При перезагрузке или перезапуске интегрированной среды сценариев Windows PowerShell после аварийного завершения работы скрипты, которые были открыты в предыдущем сеансе, восстанавливаются, даже если они не были сохранены. When Windows PowerShell ISE restarts after an unexpected crash or reboot, it recovers scripts that were open in the last session, even if the scripts weren’t saved.
Чтобы изменить интервал автоматического сохранения, в консоли выполните команду $psise.Options.AutoSaveMinuteInterval . To change the automatic saving interval, run the following command in the Console pane: $psise.Options.AutoSaveMinuteInterval .
Какой эффект дает это изменение? What value does this change add?
Теперь в интегрированной среде сценариев Windows PowerShell можно работать, зная, что открытые скрипты сохраняются автоматически. You can now work within Windows PowerShell ISE knowing that your open scripts are automatically saved.
Что работает иначе? What works differently?
В интегрированной среде сценариев Windows PowerShell 2.0 скрипты не сохраняются автоматически. Windows PowerShell ISE 2.0 doesn’t save the scripts automatically.
Список недавно использовавшихся элементов Most-recently used list
Добавлено в PowerShell 3.0 Added in PowerShell 3.0
Интегрированная среда сценариев Windows PowerShell теперь содержит список недавно использовавшихся файлов. Windows PowerShell ISE now has a most-recently used list for files. При открытии файла в интегрированной среде сценариев Windows PowerShell он добавляется в список недавно использованных элементов в меню Файл. When you open a file in Windows PowerShell ISE, the file is added to the most-recently used list on the File menu.
Чтобы изменить число файлов в списке недавно использованных элементов, в консоли выполните команду $psise.Options.MruCount . To change the default number of files in the most-recently used list, run the following command in the Console Pane: $psise.Options.MruCount .
Какой эффект дает это изменение? What value does this change add?
Список недавно использованных элементов упрощает доступ к файлам. You can now use the most-recently used list to easily access your frequently used files.
Что работает иначе? What works differently?
В интегрированной среде сценариев Windows PowerShell 2.0 нет списка недавно использованных элементов. Windows PowerShell ISE 2.0 doesn’t have a most-recently used list.
Область консоли Console Pane
Добавлено в PowerShell 3.0 Added in PowerShell 3.0
Области команд и вывода, которые были разделены в первом выпуске интегрированной среды сценариев Windows PowerShell, объединены теперь в одну область консоли. The separate Command and Output Panes that were available in the first release of Windows PowerShell ISE have been combined into a single Console Pane. Область консоли аналогична по функциональности и внешнему виду стандартной консоли Windows PowerShell, но отличается рядом усовершенствований, которые перечислены ниже. The Console Pane is similar in function and appearance to a typical Windows PowerShell console, but it includes the following enhancements:
- Цветовая разметка синтаксиса вводимого текста (но не выводимого текста), включая синтаксис XML Syntax coloring for input text (not output text), including XML syntax
- технология IntelliSense IntelliSense
- Соответствие скобок Brace matching
- Индикация ошибок Error indication
- Полная поддержка Юникода Full Unicode support
- Контекстная справка по нажатию клавиши F1 F1 context-sensitive help
- Контекстно-зависимая справка командлета Show-Command, вызываемая с помощью клавиш CTRL + F1 . Ctrl + F1 context-sensitive Show-Command
- Поддержка наборов сложных знаков и написания справа налево Complex script and right-to-left support
- Поддержка шрифтов Font support
- Zoom Zoom
- Режимы выделения строки и блока Line-select and block-select modes
- Сохранение введенного содержимого в командной строке с помощью клавиши СТРЕЛКА ВВЕРХ для просмотра истории в консоли. Preservation of typed content at the command line when you press the UpArrow to view history in the console
Какой эффект дает это изменение? What value does this change add?
Эти изменения в области консоли делают работу со сценариями более согласованной с интерфейсом консоли. The addition of these Console Pane changes provides a scripting experience that is more consistent with the console interface.
Что работает иначе? What works differently?
Интегрированная среда сценариев Windows PowerShell 2.0 имеет отдельные области команд и вывода. Windows PowerShell ISE 2.0 has separate Command and Output Panes.
Параметры командной строки Command-line switches
Добавлено в PowerShell 3.0 Added in PowerShell 3.0
При запуске интегрированной среды сценариев Windows PowerShell из командной строки (для этого введите powershell_ise.exe в командной строке) можно указывать следующие новые параметры. If you start Windows PowerShell ISE from the command line (by typing powershell_ise.exe ), you can add the following new command-line switches.
- -NoProfile : запускает интегрированную среду сценариев Windows PowerShell без выполнения $profile . -NoProfile : Starts Windows PowerShell ISE without running $profile
- -Help : отображает окно справки. -Help : Displays a Help window
- -mta : интегрированная среда сценариев Windows PowerShell запускается в режиме многопотокового подразделения. -mta : Starts Windows PowerShell ISE in multithreaded apartment mode. По умолчанию для интегрированной среды сценариев Windows PowerShell используется режим однопоточного подразделения (он задается с помощью параметра -sta ). The default operation mode for Windows PowerShell ISE is single-threaded apartment mode, or -sta .
Какой эффект дает это изменение? What value does this change add?
Добавление этих параметров командной строки позволяет управлять средой, в которой выполняется интегрированная среда сценариев Windows PowerShell. The addition of these command-line switches allows you to control the environment in which the Windows PowerShell ISE runs.
Что работает иначе? What works differently?
Интегрированная среда сценариев Windows PowerShell 2.0 не распознает эти параметры командной строки. Windows PowerShell ISE 2.0 doesn’t recognize these command-line switches.
Новые возможности редактора New editor features
Добавлено в PowerShell 3.0 Added in PowerShell 3.0
Другие возможности редактирования в интегрированной среде сценариев Windows PowerShell: Other Windows PowerShell ISE editing features include:
- Цветовая разметка синтаксиса XML. Теперь в интегрированной среде сценариев Windows PowerShell синтаксис XML выделяется цветами, как в Windows PowerShell. XML syntax coloring — Windows PowerShell ISE now colors XML syntax in the same way as it colors Windows PowerShell syntax.
- Парные фигурные скобки. В интегрированной среде сценариев Windows PowerShell реализованы контроль соответствия и подсветка скобок (например, команда Перейти к совпадению или клавиши CTRL + ] позволяют найти закрывающую скобку, если выделена открывающая скобка). Brace matching — Windows PowerShell ISE includes brace matching and highlighting, and can be used in the following ways: (for example, using the Go to Match command or Ctrl + ] locates the closing brace, if you have an opening brace selected).
- Режим структуры. Область сценариев теперь поддерживает режим структуры, который позволяет сворачивать и разворачивать фрагменты кода, щелкая знаки «минус» или «плюс» на левом поле. Outline view The Script Pane supports outlining, which allows collapsing or expanding sections of code by clicking plus or minus signs in the left margin. Обозначить начало и конец сворачиваемого фрагмента кода можно с помощью скобок или тегов #region и #endregion . You can use braces or the #region and #endregion tags to mark the beginning or end of a collapsible section. Чтобы развернуть или свернуть все области, нажмите клавиши CTRL + M . To expand or collapse all regions, press Ctrl + M .
- Перетаскивание текста при правке. Теперь интегрированная среда сценариев Windows PowerShell поддерживает перетаскивание текста при правке. Drag and drop text editing — Windows PowerShell ISE now supports drag and drop text editing. Можно выбрать любой блок текста и перетащить его в другое место в редакторе или консоли. You can select any block of text and drag that text to another location in the editor or the console to move the text. Если при перетаскивании удерживать нажатой клавишу CTRL , текст копируется в новое расположение. If you hold down the Ctrl key while you drag the selected text, when you release the mouse button the text is copied to the new location. В этой версии интегрированной среды сценариев Windows PowerShell при перетаскивании файла в интегрированную среду сценариев Windows PowerShell этот файл открывается. In this version of Windows PowerShell ISE, when you drag and drop files onto Windows PowerShell ISE, Windows PowerShell ISE opens the file.
- Отображение ошибок анализа. Ошибки анализа подчеркиваются красным цветом. Parse error display — Parse errors are indicated with red underlines. При наведении указателя мыши на подчеркнутую ошибку отображается подсказка, поясняющая суть обнаруженной проблемы. When you hover over an indicated error, tooltip text displays the problem that was found in the code.
- Масштаб. Устанавливать масштаб отображения содержимого консоли в процентах можно с помощью соответствующего ползунка (в правом нижнем углу окна интегрированной среды сценариев Windows PowerShell) или команды $psise.options.Zoom в области консоли. Zoom — The zoom percentage of the console’s content can be set by using the zoom slider (in the lower right corner of Windows PowerShell ISE window), or by entering the command $psise.options.Zoom in the Console Pane.
- Копирование и вставка форматированного текста. Теперь при копировании в буфер обмена интегрированной среды сценариев Windows PowerShell сохраняется исходное начертание, размер и цвет шрифта выделенного текста. Rich text copy and paste — Copying to the clipboard in Windows PowerShell ISE preserves the font, size, and color information of the original selection.
- Выделение блока. Можно выделить блок текста, удерживая клавишу ALT при выделении текста мышью в области сценариев или нажимая клавиши ALT + SHIFT + СТРЕЛКА . Block selection — You can select a block of text by holding down the ALT key while selecting text in the Script Pane with your mouse, or by pressing Alt + Shift + Arrow .
Какой эффект дает это изменение? What value does this change add?
Дополнительные возможности редактирования помогают получить более согласованную и эффективную среду редактирования. The additional editing features provide a more consistent and powerful editing environment.
Что работает иначе? What works differently?
Эти усовершенствования редактирования отсутствовали в интегрированной среде сценариев Windows PowerShell 2.0. These editing enhancements weren’t present in Windows PowerShell ISE 2.0.
Новое окно справки New Help viewer window
Добавлено в PowerShell 3.0 Added in PowerShell 3.0
Если нажать клавишу F1 , когда курсор находится внутри командлета или выделена часть командлета, в новом окне справки откроется контекстная справка по выделенному командлету. If you press F1 when your cursor is in a cmdlet, or you have part of a cmdlet highlighted, the new Help viewer opens context-sensitive Help about the highlighted cmdlet. Чтобы вывести раздел справки О программе в Windows PowerShell, введите команду operators в области консоли, а затем нажмите клавишу F1 . To display Windows PowerShell About help, type operators in the console pane, and then press F1 .
Прежде чем пользоваться этой функцией, загрузите последнюю версию разделов справки Windows PowerShell с веб-сайта Майкрософт. Before you use this feature, download the most current version of Windows PowerShell Help topics from the Microsoft website. Разделы справки проще всего скачать, выполнив командлет Update-Help в области консоли при запуске интегрированной среды сценариев Windows PowerShell от имени администратора. The simplest method for downloading the Help topics is to run the Update-Help cmdlet in the Console Pane when running Windows PowerShell ISE as administrator.
Где указать, откуда именно берется справка, вызываемая клавишей F1 . You can alter where the F1 key looks for Help. В разделе Другие параметры на вкладке Общие параметры в меню Сервис/Параметры можно установить или снять флажок Использовать локальную справку вместо справки в Интернете. In the Tools/Options menu, on the General Settings tab, under Other Settings , you can set or clear the checkbox Use local help content instead of online content. Если этот флажок установлен, клиент ищет справку по командлету в скачанных файлах, находящихся в папке модулей. When checked, the client looks for the cmdlet Help in the downloaded Help found in the modules folder. Если флажок не установлен, клиент ищет справку в Интернете. If the checkbox is cleared, the client looks for help online.
Какой эффект дает это изменение? What value does this change add?
Получение контекстной справки без выхода из командлета или скрипта делает обучение более удобным. Context-sensitive Help without leaving your current cmdlet or script provides an integrated learning experience.
Что работает иначе? What works differently?
При нажатии клавиши F1 в предыдущих версиях интегрированной среды сценариев Windows PowerShell открывался файл справки с локального компьютера. Pressing F1 in previous versions of Windows PowerShell ISE opened the help file on the local computer. В интегрированной среде сценариев Windows PowerShell 3.0 и более поздних версий открывшееся окно содержит справку, поддерживающую поиск и настройку. In Windows PowerShell ISE 3.0 and later, a window opens that contains the help for the cmdlet that is searchable and configurable. Это новая справка по интегрированной среде сценариев Windows PowerShell ISE 3.0, в Windows PowerShell 3.0 появилась обновленная справка. This Help experience is new for Windows PowerShell ISE 3.0, and Updatable Help is new for Windows PowerShell 3.0.
Командлет Show-Command Show-Command cmdlet
Добавлено в PowerShell 3.0 Added in PowerShell 3.0
Командлет Show-Command позволяет создать или выполнить командлет или функцию, заполнив графическую форму. The Show-Command cmdlet enables you to compose or run a cmdlet or function by filling in a graphical form. Эта форма дает пользователям возможность работать с Windows PowerShell в графической среде. The form lets users work with Windows PowerShell in a graphical environment. Кроме того, командлет Show-Command позволяет опытным программистам быстро создавать графические интерфейсы на основе Windows PowerShell. Show-Command also enables advanced scripters to create a quick Windows PowerShell-based GUI.
Какой эффект дает это изменение? What value does this change add?
Используя командлет Show-Command в скриптах Windows PowerShell, вы можете предоставить пользователям привычную графическую среду. By using Show-Command in your Windows PowerShell scripts, you can provide your users with the graphical environment with which they’re familiar. Кроме того, Show-Command помогает новичкам осваивать Windows PowerShell. Show-Command can also help introductory users learn Windows PowerShell.
Что работает иначе? What works differently?
Командлет Show-Command впервые появился в интегрированной среде сценариев Windows PowerShell 3.0. Show-Command is new Windows PowerShell ISE 3.0.