Share this article

Improve this guide

PowerShell autocomplete is not working? Try these methods

3 min. read

Updated onOctober 4, 2023

updated onOctober 4, 2023

Share this article

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

PowerShellis very popular among system administrators. Despite the fact that it is developed by Microsoft and is widely available, a major drawback of usingWindows PowerShellis that its autocomplete function suddenly stops working at times.

Plenty of users have been reporting this problem on forums:

Lately after my latest update of Windows 10 my PowerShell ISE stopped giving me the little popup that autocompletes commands … I used to click on “ctrl + space” to see the little popup but it’s not working anymore instead it gives me anerror“an unexpectederrorhas occurred andWindows PowerShellISE must close”.

If you discovered that PowerShell’s autocomplete is not working for you either, there are several steps that you can take to make things right again.

What can I do when PowerShell autocomplete is not working?

What can I do when PowerShell autocomplete is not working?

1. Make sure IntelliSense Complete Word is invoked

Go to theEdit menuand clickStart Snippets. HitStart IntelliSense, if it happens not to be set this way anymore.

IntelliSense is a code-completion aid that includes a number of useful features. Complete Word is one of them and can be easily invoked by entering intoEdit > IntelliSense > Complete Word, or by choosing theComplete Word buttonon theeditor toolbar.

After that, it should start completing the rest of a variable, command, or function name after entering enough characters to disambiguate the term.

2. Install PowerShell ISE Preview

ISE Preview has fixed this issue, so you can try to install it as well. This module is distributed via thePowerShell Gallery. That’s why the Install-Module cmdlet – which is part of the PowerShellGet module – is used to install the ISE preview module from the PowerShell Gallery.

There is also a Scope parameter if you’d rather install the module only for the current user and not in the all users path:Install-Module -Name PowerShellISE-preview

Up next, the Install-ISEPreviewShortcut cmdlet creates shortcuts in the Start menu for the ISE preview:Install-ISEPreviewShortcuts #

Finally, in order to launch theWindows PowerShellISE Preview edition, typeisep #.

3. Try using VSCode

You could also consider using VSCode. Visual Studio Code is notorious for its usability forPowerShell. The reason is really simple: it’s not only much more powerful than PowerShell IDE but also gives a sense of freshness.

Just don’t forget to configure your VSCode environment to makePowerShellthe default language. If you look in the right-hand corner of the editor, it will tell you what language is currently set to.

Moreover, some users state that this only happens on their Windows 7 computer while being on a different location.PowerShellautocomplete always works while used on their Windows 10 PC at home, so it may be a Windows 7 related issue.

In that regard, it’s a great time to migrate to Windows 10.

Did our solutions work for you? How do you solve problems such as this one? If you’re aware of another fix, share it in the comments section below so that other users can try it as well.

READ ALSO:

More about the topics:PowerShell

Madalina Dinita

Networking & Security Specialist

Madalina has been a Windows fan ever since she got her hands on her first Windows XP computer.

She is interested in all things technology, especially emerging technologies – AI and DNA computing in particular.

Prior to joining the WindowsReport team, she worked in the corporate world for a number of years.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Madalina Dinita

Networking & Security Specialist

Madalina is a Windows fan since forever, especially interested in AI, emerging technologies, privacy, and security.