r/PowerShell • • Jan 02 '24

Question Debugging in Visual Studio 2022 Professional

Is there a way to replace the discontinued ISE by Visual Studio 2022 Professional? I can't believe Microsoft doesn't support their own products. There is only some weird 3rd party addon PowerShell Tools for Visual Studio 2022.

Note I don't want to use the Visual Studio Code, it reminds me of Turbo Pascal 5.5 IDE, sorry :-)

0 Upvotes

26 comments sorted by

View all comments

8

u/ryuujinzero Jan 02 '24

I use and live by Visual Studio Code for all my Powershell ISE needs. You can change the theme to look however you want, you know...

Settings -> Workbench -> Appearance -> Color Theme

-10

u/puppy2016 Jan 02 '24 edited Jan 02 '24

It isn't about the theme. Code isn't native Windows application but Electron web wrapper, so it is slow, ugly, renders fonts totally wrong bypasing ClearType system settings (similar to Chrome) and resource hungry.

Visual Studio 2022 or ISE or anything MFC/WPF based that has native application behavior and proper font rendering. It seems as there is no replacement for the ISE.

10

u/ExceptionEX Jan 02 '24

So they support their tools just not in the way that many of us want.

Native application rendering like this is becoming less preferred and electron apps are the direction they are going mainly because one app can work across 3 operating systems.

Hell MS has just killed off what they were calling visual studio on the Mac (though it was just rebranded xamarian studio) to go this route.

So this is a punching the ocean thing, you can adapt and go with the flow, or you can fight against it, and find your options continuously limited as time go on.

It sucks but them the breaks, you could try notepad++ and some powershell plug in but your results may not be what you want.

-7

u/puppy2016 Jan 03 '24 edited Jan 03 '24

Less preferred by whom, users? Hardly. It has all the user experience issues the web sites have. It is pain to use it. Good example is Skype. It used to be a native application. Now it is the web wrapper, much slower expecially scrolling message history, always losing input focus when controlled by keyboard, no background notifications anymore, spawns 10 processes for nothing and these ugly fonts completely out of correct ClearType settings.

Of course I tried the Code too, But my first question was, what's that? A Notepad#? :-)

I'd understand if both Code and Professional were free products that they don't want to spend resources on both. But Visual Studio / MSDN is paid product so I'd expect some kind of support. Meanwhile I found a feature request for it.

Until that ISE is the way to go. It works on single platform, but it behaves right.

6

u/ExceptionEX Jan 03 '24

You just yelling at clouds man, I don't work here, or at Microsoft. I'm just explaining the situation from my perspective. And for one, I personally agree that native apps are generally better. But that doesn't really matter as I don't get to decide Microsoft's design philosophy.

But if you want to stick with ISE, and you want to use PS7 there are some options.

https://blog.ironmansoftware.com/using-powershell-7-in-the-windows-powershell-ise/

3

u/surfingoldelephant Jan 03 '24

But Visual Studio / MSDN is paid product so I'd expect some kind of support.

I imagine the number of potential users that will benefit from such a change is so small that this is considered extremely low priority (if at all). Most PowerShell users are not developers.

it behaves right.

It's fine to prefer PowerShell ISE, but just like your preference, "behaves right" is subjective. There are more issues with PS ISE besides its lack of cross-platform support.

Ultimately, use whatever you're comfortable with. I just wouldn't place PS ISE on quite such a high pedestal.

1

u/puppy2016 Jan 03 '24

It would make sense, but Microsoft had provided PowerShell Tools for Visual Studio in the past. So it is about just to continue to support it, not to develop a new product from the scratch.

PowerShell is used by developers too, see a lot of PS scripts for Azure services for instance.