PowerShell Studio 2015 – Find References and File in Files Update

We just released another build of PowerShell Studio 2015 (v4.2.95). We included a few new features to this build, but we will focus on the search-related features in this particular article.


Find in Files Update

We added some new options to the “Find In” pull down list of the Find in Files dialog.

Find in Files

The new options include:

Current Document – Searches in the current document only.
All Open Documents –Searches in all the open documents.
Current Project – Search in all the project files.

These new options will allow you to narrow your search to the files you are currently working on. For example, you can conduct a search using a regular expression to find all the variables within the current file:

Regular Expression search in current document.

And the results are listed in the Find Results panel:

Find Results

As opposed to the normal Find feature, which selects the current search result only.

Find All References

We added a new command to the editor’s context menu: Find All References.

Editor's context menu.

Find All References builds upon our existing reference highlighting feature. In addition to highlighting all the references, it will list all the references in the Find Results panel:

Find all references.

This makes it easier for you to navigate between references. Whenever you double-click on a reference in the panel, the Find Results panel will mark the reference as visited:

Find Results marks visited references.

If you are working with a project, the references located in other project files will also be listed in the search results. We hope that the new Find All References command will make it easier to maintain your existing scripts.


Next we will discuss the new additions to the Custom Menu.