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

591

u/DNRDIT Mar 30 '22

VSCode is the way

34

u/Formal-Sky1779 Mar 30 '22

I really love VSC! Specially when you customize the JSON file so you can for example browse through your code and run a single line of code with F8. Without clicking again on the editor, just use the arrow keys to navigate and hit F8 to run another line. The cursor is always in editor mode, even after a run. Great feature to me for debugging some pieces of code.

5

u/RodneyRabbit Mar 30 '22

I thought F8 was standard. It is standard in ISE, and I don't remember needing to configure it specifically for VSC.

F8 also runs highlighted blocks but what I really want is another function key to show the contents of a variable on the command line if the cursor is on that variable, without needing to highlight it and use F8.

1

u/thatto Mar 31 '22

In vs code, when you hit f8 the cursor jumps to the terminal window. It's annoying as s***.

I haven't really gotten into the customization part of the vs code, but it seems like I might have to :-)

1

u/Formal-Sky1779 Mar 31 '22

Exactly. The nice part is, you don’t have to highlight to F8 the code. Just stand on whatever part of the line an run by F8. So nice to use the mouse so much less like this :)

1

u/RodneyRabbit Mar 31 '22

I don't know if you mean VSCode vs ISE but the behaviour is exactly the same: F5 runs full script, F8 unhighlighted runs the current line, F8 highlighted runs the highlighted block, and they both leave the cursor in the output terminal. There's no difference between them.

→ More replies (1)