Example showing how to override TabExpansion2 in Windows PowerShell 3.0
问题 Does anyone have an example showing how to override the TabExpansion2 function in Windows PowerShell 3.0? I know how to override the old TabExpansion function, but I want to provide a list of items for the intellisense in PowerShell ISE. I looked at the definition of TabExpansion2 and it wasn't easily understandable how I inject my own code in the the tab expansion process. 回答1: I think this example should give you a good starting point: Windows Powershell Cookbook: Sample implementation of