Categories


Popular topics

Shortcut: Ctrl+- (numeric keypad)

Show / hide lines in the "View" tab allows you to select and hide an arbitrary number of lines so that they will not be visible on the screen (or show selected lines, if they are hidden).

Hiding lines
To hide a set of lines, select the lines you wish to be hidden and invoke the Hide/show selection command from the View tab or by using the shortcut (Ctrl + - numeric keypad). When the lines are hidden, a "+" will be displayed in the folding gutter to the left of the edit window.

If editing a file that does not have syntax highlighting, the following configuration options must be selected under Settings » Editor display » Code folding:

  • "Enable show/hide lines and code folding"
  • "Enable show/hide lines in non syntax highlighted files"

Multiple sections can be hidden at one time. Changes made to the file will update the hidden regions in most cases so that the hidden lines are maintained. In a few instances (sort, for example) this may not be possible and the hidden lines may be offset requiring them to be hidden again.

Clicking on the "+" in the folding gutter beside hidden lines will cause the section no longer to be hidden. This may be re-hidden by using this hide lines feature without a selection – in this case, the last set of lines that was hidden and then shown will be hidden again.

This command can also be used from within macros.

Showing (hidden) lines
To display a set of lines that is hidden, you can use the same shortcut (Ctrl + - numeric keypad), click on the "+" in the folding gutter beside the hidden lines, or position to it via some other means and select Hide/show selection in the "View" tab.

Saving hidden lines
If the option Save bookmarks is set in Settings » Editor » Bookmarks, the hidden line information will also be saved and reloaded when the file is next loaded.

MediaWiki spam blocked by CleanTalk.