Home ISESteroids Documentation Essential Editor Settings

Essential Editor Settings

ISESteroids adds a secondary toolbar with many new settings. To display the toolbar, click the new arrow button in the original toolbar:

Toggle Secondary Toolbar

On the left side of the secondary toolbar you find these 12 new features:

Secondary Toolbar Left

  1. Align Braces (right-click for indentation settings like size and type)
  2. Current Line Highlight (including Advanced AST Highlight)
  3. Modification Bar
  4. Vertical Guides
  5. Real-Time Auto-Indentation
  6. Display (Visible) Whitespace
  7. Line Breaks for lines that exceed the current editor width
  8. IntelliSelect
  9. Duplicate Selection or Line
  10. Move Line Up and Down
  11. Collapsible Regions: Toggle First/Second Level, Current Caret, Comments
  12. Comment/Uncomment Current Selection

On the right side of the toolbar, you find these 12 additional features:

Secondary Toolbar Right

  1. Open Snippet Editor
  2. Open Profile Script (Autostart Script). Creates profile script if it does not exist. Right-click to access other profile scripts.
  3. Insert/View Bookmarks
  4. Toggle LiteralView. Right-click to change fonts and sizes.
  5. Print current document
  6. Save current document to XPS
  7. Show Stopwatch Bar (for presentations and trainings)
  8. Show Help for selected code element
  9. Open Settings. Slides in a settings toolbar.
  10. Personalize User Interface
  11. Restart ISE. Saves your complete work environment, restarts ISE, then restores your saved environment (including any Untitled files and unsaved data). Hold CTRL to freeze environment and skip restart. Useful to continue in a fresh ISE, i.e. for testing purposes, or to release resources.
  12. Toggles ScriptMap.

Hover over a toolbar button to open a tooltip with quick infos and helpful hints like keyboard shortcuts. Below, some of the features are discussed in more detail. Other features are described in more details in other sections (follow their respective link in the description above).

Adjusting Indentation Size and Type and Visible Whitespace

The first button (1) in the secondary toolbar auto-indents code (align braces). Aligning braces makes code much more readable.

This button is enabled only when there is text in your editor.

  • Click it to auto-indent code. Code that was manually indented will not be touched.
  • Hold CTRL and click it to completely auto-indent your code.

When you right-click the button and choose “Indentation Settings”, you control width and type of indentations.

Indentation Settings

You can change the tab indent size, and the indentation type (space or tab). Click OK when you are done.

To see changes for existing code, click the toolbar button (ISESteroids recalculats indentation based on your new settings). The settings also apply immediately to new text.

You can better view the changes when you allow ISESteroids to visibly show whitespace (button 6). ISESteroids inserts different glyphs for spaces and for tabs:

Visible Whitespace

Advanced AST Current Line Highlighting

A group of three buttons (marked (2) in the toolbar overview) controls current line highlighting. You can fall back to ISE default (no highlighting), display a textmarker highlighting, or turn on advanced AST-based highlighting.

Advanced AST Highlighting adds various adornments that help you understand the context of the currently selected item. For example, if your caret is inside a pipeline statement, a scriptblock, or another structure like a condition, ISESteroids draws a thin line around the entire structure.

AST Line Highlighting

This helps you better understand where a structure starts and ends, even if it spans multiple pages. When you scroll up or down, the line tells you exactly the start and end of it.

Modification Bar

When you turn on the modification bar (button marked #3), ISESteroids paints a vertical color line. It indicates parts of your script that were modified since last save (orange color), and modifications that were saved since you initially opened or started the document (green color). This helps to find last edits in large documents.

Visible Modifications

Right-click the button and choose “Clear Trackings” to clear the colors.

Vertical Guides

When you click this button (#4), a context menu opens and lets you control three types of vertical guides:

Vertical Guides

Choose the type of guide to insert in the context menu. The result looks similar to this:

Vertical Guides in Action

  1. Temporary Guide: enabled when the caret is positioned anywhere in your code. Inserts a temporary vertical guide that applies only to the current document. When your caret is located to the right of a temporary guide, and you press ENTER, then the caret will be placed on the temporary guide in the next line. Useful to keep custom indentations.
  2. Global Guide: opens a dialog and asks for a column number, for example 80. Places a red vertical guide into that column. This guide is global, applies to all documents, and persists. Useful to mark a recommended line width, so you get a clue when a code line exceeds a given length.
  3. Indentation Guides: draws vertical guides for the indents (the columns the caret is placed on when you press TAB)

In addition, the context menu lets you control the indentation size and type, as well as the colors used for the vertical guides:

  • Indentation Settings: opens the dialog to control indentation size and type.
  • Themes: lets you choose custom colors for the three guide types.

Advanced Outlining Toggle

When your code contains collapsible regions, press CTRL+M to toggle collapse state for all collapsible elements. Or use the buttons from button group #11 to toggle collapsing for just certain collapsible regions. Here is the description for all buttons in this group from left to right:

  • Toggle collapsing for all
  • Toggle only first level: Useful to get a high level structural overview
  • Toggle only second level: Useful to get a high level structural overview
  • Toggle collapsible element that has the caret in it
  • Toggle collapsible comments only: Useful to temporarily collapse comments only