When PowerShell scripts are in several files, it is difficult to understand in which file you want to search for the implementation of a particular function. How can I quickly go to the implementation of a specific function for editing? If in PowerShell ISE put the cursor on the function and by shortcut go to the implementation of the function - this would be the best solution.
This command return file path:
${Function:Verb-MyCommand}.File
Then I can do a search for the name of the function in this file.
But it's very slow
You need to run this code in PowerShell ISE. Add-On will be added with the shortcut "CTRL + Alt + SHIFT + B". If you place the cursor on the function in the script editor and press "CTRL + Alt + SHIFT + B" or select from the Add-Ons list in the menu - the required file will open in PowerShell ISE and the cursor will move to the beginning of this function.