r/PowerShell • • Mar 30 '22

Why Microsoft, Why?

Just got off a support call with a MS Engineer. He shared with me that Microsoft is looking to get rid of PowerShell ISE in the next three to five years.

I swear they get together for beer on Friday and say "Hey, you want to know what will really piss people off?", then do it after a good hearty laugh.

221 Upvotes

401 comments sorted by

View all comments

2

u/DarrenDK Mar 31 '22

If I could press tab to fix variables in VS Code I’d stop using ISE.

If ISE formatted my code, supported Ctrl+click definition navigation and supported Ctrl+F2 variable renames, I’d stop using VS Code

2

u/SpacezCowboy Mar 31 '22

Change these settings if you want tab completion instead of snippets.

"editor.snippetSuggestions": "none",

"editor.suggest.showSnippets": false,

"editor.tabCompletion": "on",

1

u/DarrenDK Mar 31 '22

This is awesome, except I'm actually not entirely sure what it did.

What I was looking for was this:

$MyVar = "Whatever"

$myvar <-- Put the cursor in the middle of myvar and press Tab, and have it fix capitalization

1

u/SpacezCowboy Mar 31 '22 edited Mar 31 '22

Snippets are things like starting a code block and pressing tab generates a code block template. The settings I shared disable that behaviour in favor of PowerShell cmdlet tab completion. I do not know of settings for what you mention. You can probably find an extension for capitalization.

Edit: there are settings that will autocase correct cmdlets. Also Ctrl + f2 works in vs code. https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf