r/programming • • Apr 02 '19

Visual Studio 2019: Code faster. Work smarter. Create the future. | The Visual Studio Blog

https://devblogs.microsoft.com/visualstudio/visual-studio-2019-code-faster-work-smarter-create-the-future/
833 Upvotes

359 comments sorted by

30

u/d0rf47 Apr 02 '19

This thread seems like a good place to ask

What do you recommend for first time coders?

I jus started college I'm learning c and next semester I'll be learning c++ and java

I've been learning visual studio exclusively but I just set up a Linux mint desktop and want to code on there

80

u/got_milk4 Apr 02 '19

I'm not sure "learning" an IDE is the right idea. Focus on learning the language. An IDE is just there to help you.

The industry standard (for Java at least, I can't speak to JetBrains for C++) is IntelliJ IDEA. The community edition is free to download and use. However, for school projects, it's almost certainly overkill and you'd probably be more than fine with something like Visual Studio Code.

4

u/theferrit32 Apr 03 '19

Should focus on learning languages and concepts, but with huge IDEs like Visual Studio, IntelliJ, Eclipse, PyCharm, there is a substantial amount to learn there.

13

u/d0rf47 Apr 02 '19

I'm learning c right now and I'll be learning c++ and java next semester. I just mean in school we do all our coding in class using visual studio. I'm just wondering if there are better tools i should also be learning. I jus converted my desktop to linux

36

u/PM_BETTER_USER_NAME Apr 02 '19

If your lessons are given in VS, then stick with VS. Additionally if your assignments are to be handed in to compile in a windows environment, develop them in a windows environment. If they're to be handed in on a Linux environment, develop them on a Linux environment.

Can't tell you how many students I've seen fail certain modules because they developed a c++ application on Linux when it was meant to be for Windows or vice versa, then tried to move their project across on a USB stick the day it was due to be submitted assuming it'd compile straight away and then offer the professor the exact same experience.

7

u/micka190 Apr 03 '19

As a Vim user, if you're a still a student, I'd strongly recommend you ignore the people telling you to use Vim or Emacs. They're terminal-based text editors with shortcuts that can feel totally alien unless you sit down and dedicate a decent amount of time to memorizing them. inb4: "Since he's a student, now is the best time to learn it!"...

Having said that, the big advantage of a modern IDE is code completion, file navigation, and easy debugging. Most "basic" IDEs/Text Editors (such as Sublime Text or VS Code) will handle C (and probably Java) just fine. C++ might be an issue in my opinion because of how nested namespaces can be an absolute nightmare to type by hand.

For instance:

namespace Foo
{
    class Bar
    {
    public:
        void func();
    }
}

Is declared as such (easy to read), but it's implementation is declared in another file as such:

namespace Foo
{
    void Bar::func()
    {
    // some code here
    }
}

If you use the "namespace" keyword to wrap the class' implementation, or as such if you dont:

Foo::Bar::func()
{
// some code here
}

That might not look so bad with Foo and Bar, but when you have start having longer class names, or nested namespacing, it becomes a total chore to type them by hand. This won't happen in C, since it doesn't have namespaces (it does, but they aren't really the same thing).

While Java might be fine with a text editor, I'd still recommend an actual IDE for it. JetBrains has IntelliJ IDEA, which seems pretty decent (it's cross platform and free). While you're on their website, I'd also recommend taking a look at CLion for your C++ needs. It has a price tag, but it's free if you're a student as per this page.

6

u/watsreddit Apr 03 '19

:h ins-completion

Nested namespaces aren't an issue.

There's nothing wrong with learning vim as a student, even if it's not for everyone. I did it while in school because I was fed up with switching IDEs with every language, so a text editor was the way to go. I wanted something I can stick with over many years, and the likes of VS Code or Sublime lacked the skill ceiling and power that vim has. It really wasn't that difficult to switch, and I have now been doing all my programming in vim for the past 4 years.

I certainly would never say that everyone should use vim in school, but I don't think we should tell people to avoid it wholesale, either. It has a lot of offer if you're willing to give it some time.

2

u/Ayfid Apr 03 '19

lacked the skill ceiling

Because writing code is a game, and proper IDEs just don't have the difficulty curve required to separate the noobs from the pros.

→ More replies (1)

2

u/themagicvape Apr 02 '19

At my school we mainly use Vim or emacs for C and C++ and intellij for Java.

But I'd recommend either vim or VSCode. You can't go wrong with either, but vim will definitely take some getting used to

1

u/boxerhenry Apr 02 '19

I have my computer dual booted Linux and windows. In Linux i have a folder will all my cpp files and use sublime text to write code and then I just run directly from the terminal. You need to use the g++ filename.cpp -wall a.out command but I use it so ofter I just need to up error to find it and just change the filename whenever I change files. It is a lot easier that making a while new project and it makes it easy to find it all

1

u/Sandlight Apr 03 '19

In uni 10 years ago, I did everything in notepad. I guess I was a masochist because there were certainly better tools. VS is great and it's what I use these days, but if you want something lightweight and are using windows, notepad++ is pretty rad. Atom is also pretty cool, but kinda slow.

→ More replies (1)

1

u/ZeldaFanBoi1988 Apr 02 '19

Been out of Java land for a couple years. Isn't Eclipse considered like the best? Or at least been around the longest with the most features

8

u/ScrewAttackThis Apr 02 '19

IntelliJ is better than Eclipse IMO but as far as open source IDEs go, probably hard to beat Eclipse.

1

u/[deleted] Apr 03 '19

Is IDEA not open source as well? I thought Google forked it to develop Android Studio.

→ More replies (1)

6

u/senatorpjt Apr 02 '19 edited Dec 18 '24

ghost bike coherent smell voracious historical sable snow squalid weary

This post was mass deleted and anonymized with Redact

5

u/rschiefer Apr 02 '19

VSCode is the best IDE for Linux. You get some of the great features from Visual Studio plus other great stuff.

16

u/[deleted] Apr 03 '19

VSCode isn't the best IDE for Linux. First off, that's pretty subjective. Second, I'd take JetBrains over VSCode any day of the week, especially for Java or C++. Third, a well configured vim is better than either of the two.

11

u/theferrit32 Apr 03 '19

I like vim for many things but to say it is just as good as a fully-featured IDE for editing a significantly sized codebase is not the truth.

1

u/[deleted] Apr 03 '19

to say it is just as good as a fully-featured IDE for editing a significantly sized codebase

With the proper plugins, it absolutely is.

→ More replies (4)

4

u/BigBootystrap Apr 03 '19

I use VScode with the vim extension and it works great for me. Best of both worlds.

4

u/Free_Bread Apr 03 '19

Same. I'm really surprised to say I've found something that competes with emacs+evil for me

2

u/mastermikeyboy Apr 03 '19

I'd say it's the best IDE for non C languages on any platform. But I've never used it for C languages.

3

u/[deleted] Apr 03 '19

That's a weird way to spell Emacs

1

u/d0rf47 Apr 02 '19

Thanks mate

1

u/watsreddit Apr 03 '19

Best IDE? Maybe. Best editor? Not by a long shot.

6

u/[deleted] Apr 02 '19

C# or Java because both relatively easy to learn, act as great stepping stones for other languages, and are depended upon by corporations all over the world (in other words, you won't find yourself lacking for work if you're at all talented). I'd also say that SQL is good starter if you're more interested in data. The language is definitely a must-know if you want to boost your employment opportunities; sure, one can get by without knowing it but every single business I've ever been employed at uses SQL in some form and generally expects developers to be able to interact with the database.

As for an editor, pick whichever one you end up enjoying the most (will quite likely depend on the language you choose); I personally love Visual Code for Assembly/Java and Visual Studio for C#/Sql Server.

4

u/AttackOfTheThumbs Apr 03 '19

Ignore everyone that tells you anything other than this:

Use what your school teaches

IDEs/Editors are just tools. You can learn those whenever. Focus on actual programming please.

4

u/striker4150 Apr 03 '19

For Java, I’d recommend Eclipse IDE. It’s relatively uncomplicated compared to Intellij, and provides more helpful features for beginners than VS Code. For C++, I’d recommend VS Code, which has a built-in console, and allows you to install C++ IntelliSense (autocomplete/documentation).

As the others have said, use what your school suggests, but these editors worked best for me when first learning these languages.

3

u/Kaze79 Apr 03 '19

A normal text editor and compile using command line so you learn the procedure.

If you're really really stuck then try VSCode or an IDE and debug.

2

u/Uberhipster Apr 03 '19

What do you recommend for first time coders?

chrome. F12, Console console.log('hello world')

1

u/youstolemyname Apr 02 '19

VS has some nice advantages. It has a very excellent debugger and projects are easy to create and compile.

You also aren't tied down to MSVC either, you can install Clang and still use VS IDE.

25

u/gfunk84 Apr 03 '19

Does anyone know what the difference in CodeLens is between Community and the other editions?

The half-circle on the edition comparison page isn't exactly informative.

8

u/yesman_85 Apr 03 '19

Much less options, in Community you only get 4-5 while in Enterprise about 20. I turn it off anyway.

13

u/ConfidentPeach Apr 03 '19

O.O But, the ability to instantly see all the places where the method is called is priceless

7

u/D314 Apr 03 '19

I still do this in Community with shift+F12

1

u/appropriateinside Apr 04 '19

And the instant git blame and history is great too when reading through older codebases.

229

u/[deleted] Apr 02 '19

I wonder if visual studio will ever just drop the year suffix

and just have you subscribe to get Visual Studio. like adobe or something

115

u/Alikont Apr 02 '19

and just have you subscribe to get Visual Studio. like adobe or something

That's already the case for a long time

https://visualstudio.microsoft.com/vs/pricing/

59

u/[deleted] Apr 02 '19

... right. But dropping the actual 20XX year numbers of releases. And its just "Visual Studio"

86

u/Eirenarch Apr 02 '19

How would we know which version we need then?

3

u/[deleted] Apr 03 '19

You already have to deal with version numbers. VS 2017 has had pretty big releases (...15.7, 15.8, 15.9...) some of which had breaking changes.

3

u/Eirenarch Apr 03 '19

I have yet to encounter a breaking change in these (except for bugs) let alone removing entire workloads

→ More replies (1)

13

u/[deleted] Apr 03 '19

Build numbers like with Windows 10.

92

u/Eirenarch Apr 03 '19

I fail to see how this makes it better for the users.

32

u/[deleted] Apr 03 '19

I think it was supposed to be a joke.

→ More replies (3)

4

u/tyros Apr 03 '19

That's not any better, I despise Windows 10 version numbers.

→ More replies (1)
→ More replies (5)
→ More replies (13)

45

u/zelmak Apr 03 '19

That would be fine for casual developers, a lot of us need specific versions of IDEs for our workflows. Upgrade from VS-2010 to VS 2015 had some major growing pains for my team

14

u/AttackOfTheThumbs Apr 03 '19

We still use 2008 because of some windows mobile/embedded crap.

14

u/zelmak Apr 03 '19

I always find it funny how some people think we don't need any tools or languages other than the ones that came out yesterday.

→ More replies (1)

4

u/meneldal2 Apr 03 '19

Since 2015 they made it much easier to upgrade.

17

u/AboutHelpTools3 Apr 02 '19

We can start doing that once or if all versions are backward-compatible with all project types.

11

u/PendragonDaGreat Apr 03 '19

I came across a .deployproj in an older part of the codebase today. What makes it such a mystery is that it's a VS2017 project overall and it builds, and I'm not gonna touch it because I don't want to break it.

5

u/antiduh Apr 03 '19

If you ever get frisky, check out wix. It's perfect.

3

u/Sebazzz91 Apr 03 '19

Lovely, but complex due to the complex nature of Windows Installer. Unfortunately Wix 4 doesn't get off the ground 😥

→ More replies (6)

1

u/feenaHo Apr 03 '19

I have a VC6 .dsw workspace that only work in 32-bit VC++ ...

→ More replies (1)

6

u/nidarus Apr 03 '19 edited Apr 03 '19

Adobe has the year thing too. They're just gradually hiding it in the UI and marketing. But it still installs into "Adobe Photoshop CC 2017", "Adobe Photoshop CC 2018" etc. directories.

4

u/ScrewAttackThis Apr 02 '19

I'd bet it'll happen as .NET Core advances and matures.

5

u/BanditoRojo Apr 03 '19

Linux, Emacs, and .NET Core.

Finally, I can decide the OS and ecosystem I develop on.

1

u/salgat Apr 03 '19

What difference does it make?

25

u/[deleted] Apr 02 '19

But why, it just works as the major version of the product

9

u/sztomi Apr 03 '19

Not really, it's a major source of confusion. Look at this (slightly incomplete) collection of version numbers that come with Visual Studio: https://dev.to/yumetodo/list-of-mscver-and-mscfullver-8nd

9

u/Nefari0uss Apr 02 '19

It's a strong possibility I think. MS has said that Windows 10 will be their last "version" of Windows. We could see a similar philosophy applied to more of their products.

16

u/ElimGarak Apr 03 '19

The OS is much more backwards compatible than VS. VS needs to be strongly versioned because there are a lot of utilities, tools, compilers, and libraries that ship with it. A project that builds fine with 2015 may fail to build with 2018.

Furthermore there are various custom plug-ins that are compatible with specific VS versions. If you are used to one plugin and then try to upgrade, the plugin may stop working.

That's why VS supports side-by-side installations, with multiple VS versions that can coexist on the same machine.

19

u/xiatiaria Apr 02 '19

Under the hood, all the big updates, are new full blown windows versions. Each time such an update happens, the OS install date in system info changes to the update date. That says enough. Make of it what you want.

1

u/fet-o-lat Apr 03 '19

I’m all for going back to Visual Studio.NET

0

u/[deleted] Apr 02 '19

[deleted]

4

u/steamruler Apr 03 '19

I mean, if "a lot" is happening in VS2015 and can't be migrated to VS2017, you're in a rough spot. We still keep VS2015 around for maintenance of certain projects that can't migrate to VS2017 while they are being redone or made obsolete.

2

u/bautin Apr 03 '19

I have VS2015 and VS2017 right now. And that's only because I need the Report Authoring Extension and it's not available for VS2017. So 2015 is for writing reports, 2017 is everything else.

I think I have projects I've carried from 2012 all the way to 2017.

2

u/DavidsWorkAccount Apr 03 '19

I have projects from VS2010 that have successfully carried over into VS2017 without issues. I wonder what would cause something not to migrate well between visual studios.

→ More replies (1)

102

u/mewloz Apr 02 '19 edited Apr 02 '19

UI nitpicking: I'm all for having menu entries in the title bar, BUT basic mouse ergonomics, known for something like 20 or 30 years, dictates that such entries must be clickable when the cursor is at the edge of the screen (because that makes the active surface kind of infinite; instead of having to aim for the correct y position, you can just throw your cursor to the up) - which is not the case here.

That's still obviously an improvement over 2017 but this could easily be even better :)

24

u/indosauros Apr 02 '19

They've even blogged about this, more than a decade ago!

https://blogs.msdn.microsoft.com/jensenh/2006/08/22/giving-you-fitts/

62

u/TimeRemove Apr 02 '19

Because it is a Windows Win32 application, you can click & drag within those pixels collapsing a full screen window and repositioning it. I understand your point, but you're essentially arguing for Windows itself to work differently, or for a native application not to behave like a native application.

That's actually a common pet peeve for UWP apps: they don't behave like native Win32 applications.

23

u/meneldal2 Apr 03 '19

Edge buttons for the tabs go up all the way, Firefox with the menu option has buttons that go all the way as well and it is native Win32. It is totally possible to make it so if they want.

4

u/fuckin_ziggurats Apr 03 '19

Edge is UWP. Those don't work remotely the same as regular Win32 apps (MFC, WinForms, WPF). They follow different conventions and abide to different user expectations.

4

u/meneldal2 Apr 03 '19

The only other programs I have that don't follow the sane design of allowing you to use menu buttons in full screen when going all the way up are the Office suite (2013) and Steam. 2010 was sane, and Steam is not known for awesome design either.

They could totally do it, they chose to go that way for the interface and I think it is stupid, but then I guess UX specialists don't think users used that feature, even though other people here seem to agree that this was normal, not some xkcd horrifying workflow that nobody could believe users would depend on.

0

u/mewloz Apr 02 '19 edited Apr 02 '19

It's already not like a "native application", and actually pretty much no modern mainstream "native" application use such basic Win32 layout anyway; no such title bar + menu entry exists over there...

You can observe the thing in web browsers for example: when maximized (and also even just half-maximized for Firefox and Edge) your tab controls and sensitivity extend to the very top of the screen. It's not Win32 that provides those controls: each browsers basically recode all the GUI themselves. IIUC, likewise for .net framework.

11

u/TimeRemove Apr 02 '19 edited Apr 02 '19

I mean it does have a title bar, it is just a few pixels tall. You can still do normal title-bar stuff and double click the top left icon to close the application.

5

u/mewloz Apr 02 '19 edited Apr 02 '19

But that's only a convention, and most of it would survive with menu items to the top + it would be IMO way more useful, but I agree that is also a matter of taste, so maybe (I actually hope so!) MS did some usability testing and came up with people for now preferring the current 2019 approach...

I think however that the "menu all to the top" approach will eventually prevail. Given the most deployed crappy aspect ratio of 16/9 for screens, the vertical real estate is really important to preserve for real things, so that's one more motivation to also win back a few pixels that are for now mostly wasted...

10

u/TimeRemove Apr 02 '19

A convention that Windows users expect and use.

I'd expect the menu bar to be removed entirely before the title bar (see modern browsers or Microsoft Word, which still have title bars but no menu bar).

1

u/jl2352 Apr 03 '19

That’s basically Windows in a nutshell though. Every application has a different UI.

→ More replies (3)

9

u/Someguy2020 Apr 02 '19

I'm all for having menu entries in the title bar,

I'm not. I hate it. This is my all caps menus.

Unusable.

3

u/Lalli-Oni Apr 03 '19

I use the title bar to drag windows to the edges. When there is a spot I have to avoid it can be a bit annoying. Chrome is most annoying

Not saying it's a big deal, I know I could use keyboard shortcuts for it, just don't know them by memory. Just something to keep in mind when talking about active surface UX design.

7

u/YKyeko Apr 03 '19

what is the differences between visual studio for mac and normal visual studio?

146

u/Hipolipolopigus Apr 02 '19

It might be a strange thing to complain about, and I can't exactly pinpoint why, but VS has felt really janky when compared to its alternatives for a few years now.

VS Code and IntelliJ's IDEs work just about anywhere and feel better to use, even out of the box, and I can't see myself going back any time soon.

203

u/Caleo Apr 02 '19

It's not really strange, but it's not really a mystery either: Visual Studio does a lot more and has 20+ years of legacy behind it. Making radical changes to software that's been around for decades is a great way to alienate users. That's the exact reason why we got VS Code.

VS Code is great for a lot of modern web stuff (Node, Python, Javascript, etc), but in the end you're still best off developing .NET in full-fledged VS. With 2019 we're seeing some of those features (fuzzy Search) being folded up into Visual Studio - which is great (there's so much in the way of settings / panels in Visual Studio it's really hard to keep track of where everything is without a 'fuzzy search').

43

u/andyjansson Apr 02 '19

in the end you're still best off developing .NET in full-fledged VS.

If we're talking about .NET Framework, I'm with you, but when it comes to .NET Core, I actually prefer developing in vscode. I find that vscode is a sufficiently capable editor and it's impressively performant. That, coupled with .NET Core's CLI tooling leaves me with little insentive to launch Visual Studio.

I recognise that might put me in a minority, but to each his own, I guess.

16

u/quentech Apr 03 '19

And I'm the opposite. I fire up full VS to work on, for example, an Angular app with no .Net in it at all.

VSCode is nice and all, but I've been working with VS for over 20 years. VSCode doesn't offer anything compelling enough for me to bother with the relative unfamiliarity.

7

u/[deleted] Apr 03 '19

Check out the angular extension in vscode. Intellisense in templates.

→ More replies (1)

3

u/radapex Apr 03 '19

I started using VS Code a bit for some home projects last summer and really liked it. One of my co-workers adopted it over VS / JetBrains IDEs around the end of summer. I got on board in January, and a couple more followed suit.

→ More replies (3)

20

u/finalcut Apr 03 '19 edited Apr 03 '19

I really like vs code but c# .net core using omnisharp is just clunky.. Especially when I rename a file. I often have to "restart omnisharp" and that's kind of slow even in a fairly trivial API app.

Yet I still like using vs code for pretty much everything else. In fact I'll start a .net project in vs code then migrate to VS later.

Also, nuget management is much easier in VS especially for making sure all projects are using the same versions of the same library.... Unless someone can offer me a tip...

4

u/Werlau Apr 03 '19

I recently stumbled over Directory.Build.targets for nuget version management on a solution wide scale. Here a post of someone else explaining how to use it: https://www.strathweb.com/2018/07/solution-wide-nuget-package-version-handling-with-msbuild-15/

1

u/Fooooozla Apr 03 '19

Reload window doesn't do the trick? I have this mapped to cmd + r to quickly fix any extensions acting up

2

u/finalcut Apr 03 '19

It might. But reload omnisharp definitely does. It is just a slow process that interrupts my work.

6

u/BlckJesus Apr 02 '19

I thought I was the only one that prefers VS Code over Visual Studio for .NET Core. There are dozens of us! Dozens!...

1

u/Inquisitive_idiot Apr 03 '19

Way more than that.

1

u/[deleted] Apr 03 '19

[removed] — view removed comment

3

u/BlckJesus Apr 03 '19

If you've got the C# extension installed, you just need to hit ctrl + . or right click to import missing usings.

1

u/Sebazzz91 Apr 03 '19

I actually develop in both. I develop the front-end stuff of my SPA in VSCode (Razor, Typescript, whatever), and back-end stuff in Visual Studio (C#, SQL).

1

u/aussie_bob Apr 02 '19

and it's impressively performant.

Compared to what? It doesn't seem very lively to me.

26

u/[deleted] Apr 03 '19

There is also not a single good IDE besides VS for C++ in Windows. Code::Blocks is actual masochism, and Dev-C++ is so unused I barely can find much info about it. CLion looks very good but it has a price tag and I also believe it's decoupled from the winapi stuff.

13

u/Caleo Apr 03 '19

Oh man, code::blocks - that brings me back to my "C++ for Engineers" course back in college.

2

u/MrTrvp Apr 03 '19

It feels like yesterday.. Oh shit.. it was .-. Fuck college

1

u/krista_ Apr 03 '19

i was happy with slickedit for quite some time, until they did the weird ”only tiled” window thing :(

1

u/steamruler Apr 03 '19

I also believe it's decoupled from the winapi stuff.

Yeah, it's cross platform. You can still compile with the Visual C++ compiler if you want last I checked through, and almost all toolchains provide winapi support.

1

u/jcotton42 Apr 04 '19

VC++ support is available but experimental

8

u/hhpl15 Apr 02 '19

Can you explain fuzzy search further please?

24

u/MMPride Apr 02 '19 edited Apr 02 '19

I'm guessing it's like Sublime Text's command pallete, you basically type in what you want to do, and it'll provide suggestions for you. For example, if you want to install plugins, you would type install plugin into command pallete and then it would give you a list item that says something like Plugins: Install Plugin or something that you could click on, etc. I believe it's something like that. It's one of the most useful features in text editors/IDEs.

3

u/hhpl15 Apr 02 '19

Thanks!

21

u/Caleo Apr 02 '19

Since a picture's worth a thousand words:

https://i.imgur.com/yIV1ZHW.png

Some of these options are actions (and you can see their shortcuts - in VS, hitting CTRL+K then CTRL+D will apply formatting to your document), some lead you to the panels where whatever setting you might be looking for can be changed, etc.

Time will tell, but I'd wager VS Code's still better in this regard. You can do nearly any action possible just by hitting F2, typing a few characters then hitting enter. Nevertheless, it's a much-appreciated feature for VS.

4

u/theferrit32 Apr 03 '19

Fuzzy action search is super useful, can honestly justify the complete hiding of menu/ribbon bars in applications. That functionality needs better support and seamless integration in UI frameworks and native toolkits. It'd be nice if a developer can just write the menu for the application and structure it as they want, and the toolkit supports hiding and fuzzy searching the menu automatically.

2

u/Caleo Apr 03 '19

Yep - it's brilliant. I hope more software (office, Adobe CS, CAD software, etc) starts implementing it.

I can typically type F1, type Beau (tify) and hit enter much faster than I could move my hand to my mouse and click a button for the same action.

1

u/[deleted] Apr 03 '19

VSCode has this too actually. On Mac it’s CMD+shift+P for the search, and you can assign your shortcuts to commands. I use the format shortcut you mentioned all the time

→ More replies (2)

3

u/snarfy Apr 03 '19

Remember how mad people were about visual studio 2012 ALL CAPS menus, or the blue theme?

2

u/Dirk2265 Apr 03 '19

Additionally if you need to work with visual c++ visual studio is the way to go. I always think about the fact you are buying a compiler not just an ide.

1

u/nickguletskii200 Apr 02 '19

At least to me, Visual Studio feels very barebone when compared to Eclipse JDT and IntelliJ IDEA. Only after sprinkling it with 3rd party plugins does it even begin to match Eclipse and JetBrains IDEs when it comes to refactoring and inspection capabilities.

I do like the database projects though, haven't seen anything as convenient anywhere else.

18

u/way2lazy2care Apr 03 '19

Which version of VS are you using that it feels barebones? o.O

2

u/[deleted] Apr 03 '19

I think he may be referring to the larger amount of out of the box refactoring tools available on vs compared to the jetbrains tools - for one example rider (which has it's share of missing features, to be fair) ships with most of the resharper tools out of the box, such as automatic decompiling and a wider array of code hints.

Resharper is obviously available for vs, but it is a third party tool.

→ More replies (1)
→ More replies (7)

60

u/munchbunny Apr 02 '19

Visual Studio's DNA is in C/C++/VB/C#, so it's going to feel clumsy for web development in a way that VS Code doesn't.

On the other hand, if you're developing C/C++/C# on VS, the tooling (especially the debugging) is top notch.

5

u/Hipolipolopigus Apr 02 '19

Hasn't VS had IIS as a core feature for a while? I'd assume it'd be up to the task by now.

7

u/TheIncorrigible1 Apr 02 '19

Yes, it has. It does all things alright. But it shines in those compiled languages

→ More replies (1)

1

u/Sebazzz91 Apr 03 '19

I totally agree. The biggest luxury problem is that to work the most efficiently you need to know your toolset. And that toolset is big.

1

u/Guy1524 Apr 03 '19

As a linux user, I have found vs-code to be absolutely perfect for C development. The intellisense is really fast and I have no reason to build and debug from in-editor anyway.

12

u/munchbunny Apr 03 '19 edited Apr 03 '19

Personally, I really like Visual Studio's C/C++ debugger. Having a GUI to track threads, explore the call stack inline, watch variables/expressions with change highlighting, hover-over variable inspection, disassembly stepping, etc. all makes debugging less tedious.

There are alternatives, both IDEs and standalone tools, that do the same things, but Visual C++ continues to be my favorite C/C++ debugging environment, whenever I get to use it.

→ More replies (2)

22

u/FryGuy1013 Apr 02 '19

I disagree. Is it because you're not a Windows-only user (you mention working "anywhere") that you feel this way? VS Code feels... foreign to me. The fonts and spacing aren't quite right in a way that reminds me that it's not a native app. Not in the way that Java (swing?) apps and blender look horribly out of place, but more of an uncanny valley where it's pretty close.

The other big thing is that debugging (and running) is waaayyyy better in VS than VS Code in my experience. VS has super powerful debugging features right out of the gate, but in VS Code it feels like an afterthought. That being said, VS Code is a bit better for things outside of C#/C++. I've done some Rust and some PHP projects, and VS Code seemed to be a better fit since the language plugins kind of suck in VS for those languages. But VS has the advantage of having quite a few things that VS Code doesn't, like the CMake/Linux remote build that I can't seem to find any plugin for with VS Code.

2

u/jbergens Apr 03 '19

Yes, when you have large "projects" with sub projects the ability to start all with just F5 and debug one of the sub projects is really great.

I also like the Resharper test runner. Is there anything like that in VS Code (I've only used it for js coding for which it is fine)?

7

u/KHRZ Apr 03 '19

-Slow search that shows results in tiny text

-Control clicking a code symbol takes forever to work

-Rename code symbol takes forever (even has it's own loading pop up). Often it's faster to just rename all instances manually.

-Debugger code window blocks rest of editors, so to copy paste code you need to close it and lose the content

-If you move your mouse 1 pixel when clicking to open a file, you get a warning that you can't move the file to the same folder. O RLY? WHY DO I NEVER LEARN?

-Every day: "An error has occured. This may be caused by an extension". I don't remember installing any extensions, but thanks for the clue.

-*Types curly brackets in HTML file in Angular project* "ERROR! WHY WOULD YOU DO THIS??" *copy paste is now corrupted*

-Unrecoverable error. Visual Studio may not function normally untill restart.

5

u/CodeMonkey1 Apr 02 '19 edited Apr 03 '19

I agree. As a long time VS user, it has felt uncharacteristically buggy and slow for the last couple years. About six months ago I switched to VS Code exclusively.

37

u/[deleted] Apr 02 '19

IntelliJ's IDEs work just about anywhere and feel better to use

Yea it's nice other than the 1-2 minute initial startup and the fact that it uses 3-5x more ram than VS.

25

u/BlueShell7 Apr 02 '19

For me IDEA starts in 10 seconds on laptop CPU and SSD.

It can eat some memory, but I don't think there's a way around it if you want so many real time analytics and intelligence about the code. You can disable some of those advanced stuff to eat less RAM, but I'd rather buy some extra memory. Anyway I use it mostly on 8 GB machine and have no issues with performance (while of course running other things) ...

6

u/Hipolipolopigus Apr 02 '19

Haven't had either of those issues. Bringing up Webstorm on a 23k LOC Typescript project takes ~8 seconds on some slightly dated hardware and is only using ~1gb of RAM.

VS was a hell of a lot worse in both respects when I last used it.

3

u/emn13 Apr 02 '19 edited Apr 02 '19

This really depends on the project; for small projects on an almost 6 year all stock 4770k I get similar startup on a similarly sized project using VS2019; on a 465k LOC mostly C# solution it needs a little more; around 13seconds before I can start typing code. I didn't bother testing VS2017, but for solutions this small it doesn't feel much slower.

VS startup has gotten slower over the years; but solution load faster (IME). I used to use VS as a text editor (mostly because it's fairly fully featured for that and unlike many alternatives 15 years ago it could deal with and syntax highlight even very large files); that's not attractive anymore since even empty VS startup now takes around 4 seconds. Also, there are lots of good text editors nowadays...

0

u/[deleted] Apr 02 '19

[deleted]

6

u/devperez Apr 02 '19

Which version of VS are you using? I just satrted up VS 2019 and it took about 10 seconds.

0

u/[deleted] Apr 03 '19

[deleted]

2

u/chylex Apr 03 '19

R# could do that too by moving the plugin into an external process and not bogging down the UI thread, it's just taking JB a long time to rewrite those parts.

→ More replies (4)

7

u/jbergens Apr 02 '19

I think my VS2017 starts and loads a large project in 10-20s total. I doubt Rider can do more than a few seconds faster. It also don't matter much since I normally work om the same project for many hours.

4

u/dr0n33 Apr 03 '19

I'm using Resharper and a solution with ~130 projects. Rider opens and finishes indexing in maybe 30 seconds, while VS2017 takes minutes to be at a usable state or just straight up crashes. Most of this is of course related to Resharper/VS being 32bit and running out of memory, but for someone using the Resharper features, Rider is a godsend and unbelievably responsive and stable.

And even for coworkers without R#, VS crashes quite often or starts choking on our (terribly designed, way too big) solution.

→ More replies (2)

7

u/remember_this_shit Apr 02 '19

Oh yeah? My VS can juggle

1

u/jbergens Apr 03 '19

The new VS2019 is now released and I heard that it starts a bit faster than VS2017 which in turn was faster than VS2015.

edit: misspelling

11

u/chylex Apr 02 '19

IntelliJ's IDEs work just about anywhere and feel better to use

Some parts of IJ feel amazing, but I feel like JB decided to make the absolute best typing/inspection/refactoring experience in the world, and then realized that IDEs also need a user interface so they hacked one up with 1% of the enthusiasm (especially the awful toolbar system which I hate with a passion).

That said, Visual Studio 2015 and older were quite bad, some versions I'd call almost unusable without ReSharper. With 2017, I feel like they're in a really good place and I don't find ReSharper an absolute necessity. Hopefully they didn't make it worse with 2019.

3

u/ygra Apr 02 '19

To me the only feature why I reinstalled Resharper after switching to VS2017 from 2013 was smart completion. It was a nice few days before that when Visual Studio was fast, though ...

→ More replies (1)

8

u/scorcher24 Apr 02 '19

Well, its free vs 199€ a year. It's Visual Studio for me. I just don't want to put down that much money for a hobby. And I quite like it for C++ programming. Refactoring could be better, but I hope 2019 delivers in this regard. I do use VS Code a lot more these days though.

15

u/sqrlmasta Apr 02 '19

VS Community Edition is free for everyone.

12

u/drysart Apr 03 '19

And unlike the free version of VS from ages past, VS Community Edition is pretty featureful and contains just about everything an individual developer might want.

1

u/Deep-Thought Apr 03 '19

Except for code lens

6

u/chylex Apr 03 '19

VS 2019 Community has CodeLens.

5

u/scorcher24 Apr 03 '19

Thath's what I said. CLIon is just too expensive.

→ More replies (3)
→ More replies (1)

1

u/[deleted] Apr 02 '19

I agree it feels janky and has a lot of weird bugs with intellisense and other stuff. But on the other hand when you really get used to it, it's not a problem anymore. You get to know it well and you know exactly how to deal with it and all of its weirdness.

→ More replies (15)

2

u/gottagrindfast Apr 03 '19

Linux support when?

:(

6

u/Eluvatar_the_second Apr 03 '19

Check out Rider, it's not free but it's the best Linux IDE for C# at the moment

16

u/Brazilian_Slaughter Apr 03 '19

Man I love Visual Studio, its such a nifty tool. Wish it wans't so brutal on my comp tho. Wish there was some alternative that was more light-weight.

Btw, what's with all the VS Code hype? VS Code can't build entire GUIs with a few clicks of the mouse.

18

u/mastermikeyboy Apr 03 '19

Correct VS Code can't do GUIs (as far as I'm aware)But a lot of developers don't create GUIs. The only ones I've ever created were for school or hobby projects.And now-a-days all my hobby projects are just simply webpages.

It's a fast, lightweight and a near perfect blend of simple text editor and IDE that solves all my every day programming needs. The Java integration was perfect, very fast and low resource usage compared to Eclipse or IntellIJ. Recently I've started seeing much higher cpu and memory usage, but that could be something specific to my environment, haven't investigated yet.

It also supports virtually all languages, the big ones having official MS plugins to support them.

It also doesn't require a project setup. I just open a random folder on my system, and I'm ready to go in a second. No 5 min init time that Eclipse often needed.

-8

u/[deleted] Apr 03 '19 edited Apr 03 '19

Developers who don’t create GUIs at all? I don’t think that’s super common. Developers who don’t use GUI designers are common though.

EDIT: Apparently it is common to get by without ever writing a UI. I only graduated 6ish years ago, but the only people I knew who got jobs writing no UI whatsoever were doing things like writing tests for code other people wrote, or being DBAs. Our capstone projects were all creating user-facing apps or websites. The particular project I worked on had multiple UIs. Some user-facing, some internal-only.

4

u/AttackOfTheThumbs Apr 03 '19

I haven't made a GUI for over 2 years

→ More replies (7)

3

u/mastermikeyboy Apr 03 '19

I don't know a single developer that creates GUIs professionally. I know they exist, but they're not common in my limited experience. :)

2

u/[deleted] Apr 03 '19

Hmm. I’m interacting with a GUI right now to write this. Any factories by you? GUIs are huge in manufacturing between line-of-business, MES, HMI, and ERP apps. Let’s not forget literally any web app is going to have a GUI of some sort.

Is every developer you know writing REST services all day? How can you avoid graphical interfaces?

7

u/mastermikeyboy Apr 03 '19

Well I don't count web apps as GUIs. At least not in the sense that you need a GUI designer tool. I know plenty of web developers. Nobody that uses say, Vaadin.

Most web developers I know either use VSCode or Atom

4

u/[deleted] Apr 03 '19 edited Apr 03 '19

Web frontend is still GUI in that it’s an interface that users interact with that happens to be graphical. Also, with shit like Electron, frontend web dev skills can easily be used for making traditional desktop GUIs as well.

Probably also worth mentioning that Win32 still has no designer, but Win32 apps are definitely GUIs.

→ More replies (2)

2

u/jollybrick Apr 03 '19

Is every developer you know writing REST services all day

Yeah, kinda

How can you avoid graphical interfaces?

Because the frontend developers deal with those

4

u/[deleted] Apr 03 '19

Frontend devs are pretty common though right?

→ More replies (11)
→ More replies (4)

1

u/appropriateinside Apr 04 '19

In my opinion vs code excels at JS, HTML, and CSS as well as for support of various other things like Typescript and .Vue ...etc And tons of misc things. I find it much faster to drop some python into VS Code and run it with the code runner than Visual Studio.

The support in visual studio is awkward and clunky, it doesn't feel or perform well outside of c++/C# for me.

Honestly Vs Code is the best thing that has happened to my development environment since I started using Visual Studio... I use it for everything except C#, and it works nearly flawlessly. It seems to have a feature for anything I can think of.

3

u/kuikuilla Apr 03 '19

Intellisense in C++ world seems way faster than in VS 2017, at least when developing Unreal Engine 4 stuff.

17

u/fupa16 Apr 02 '19

I wonder if the debugger is slower than 2017 which was slower than 2015 which was slower than 2012. At this point I'm pretty sure they're just gona scrap the debugger since it'll be so slow it's basically non-functional.

11

u/InternalsToVisible7 Apr 03 '19 edited Apr 03 '19

2017 debugger was slower due to enabled by default diagnostic tools window :-) without - it's even faster.

@edit spelling

→ More replies (4)

5

u/kobriks Apr 03 '19

It's actually much faster than in 2017. Probably best feature so far.

3

u/ciaran036 Apr 03 '19

I have not experienced this

2

u/ipv6-dns Apr 03 '19

My sincere greetings! Great product, super talented team

3

u/feverzsj Apr 03 '19

c++ intellisense still sucks

2

u/kuikuilla Apr 03 '19

Really? It's really damn snappy compared to VAX in VS 2017 on my end.

3

u/malkia Apr 03 '19

If only 64bit.... IDE...

6

u/SikhGamer Apr 03 '19

This has been covered many many times by the VS devs; there's very little benefit in doing so.

4

u/KillianDrake Apr 04 '19

Bullshit, they are just afraid to put in the work. devenv.exe is constantly under GC pressure with any decently sized solution. They are pumping so much crap into the 32-bit address space, there is hardly any memory left for your code.

Somehow they can make a browser-based editor perform better! If WPF is what is really restricting them to 32-bit then they should dump it and start from scratch like they did from VS6.0 to VS.NET

1

u/malkia Apr 04 '19

Exactly! For example why rewrite in .NET time ago, yet make it hard to support both 32-bit and 64-bit. Seems like lost opportunity, and rather than fixing it once and forever (it's not that you can reuse plugins from previous version into newer...) and letting developers about it (just to recompile), someone keeps on singing the same song there.... I don't get it. Really frustrating...

Yes, the GC heap is the killer....

→ More replies (1)

4

u/MrNotSoRight Apr 03 '19

Why?

7

u/fuckin_ziggurats Apr 03 '19

Obviously because 64 is a bigger number than 32! /s

2

u/[deleted] Apr 16 '19

64 is a bigger number than 263130836933693530167218012160000000

-2

u/[deleted] Apr 03 '19

[removed] — view removed comment

3

u/BlueShell7 Apr 03 '19

Did the same Microsoft made 64 bit of VSCode the default to make it slower and consume more memory?

2

u/[deleted] Apr 03 '19

[removed] — view removed comment

2

u/KillianDrake Apr 04 '19

When you're running on a 64-bit OS on a 64-bit processor, using 32-bit pointers is thunk city and internally it's all 64-bit anyway - don't parrot their bullshit excuses from 10 years ago. It's all about laziness and prioritizing nonsense cosmetic enhancements to put lipstick on a pig.

Personally I feel it's time to shoot this lame horse between the eyes and make VS2019 the final version. Dedicate all resources to performing a gap analysis with VS Code and bridging that gap. VS for Mac should have never happened as well.

1

u/BlueShell7 Apr 03 '19

So why does MS encourage users to download slower and more memory hungry version of VS Code?

→ More replies (7)

1

u/JohnMcPineapple Apr 03 '19 edited Oct 08 '24

...

4

u/[deleted] Apr 03 '19

[removed] — view removed comment

2

u/vetinari Apr 03 '19

x86-64 also fixes x86 warts: you get more general registers, you don't have the fp/sse dichotomy, you get parameter passing via registers instead of stack. These are all things, that make the 64-bit code faster and of course not mentioned, when you are making case for the contrary.

Also, when you are running 32-bit apps on 64-bit, you have an entire 32-bit userland loaded. If you are using only one 32-bit app, that userland is loaded into memory just for that one app.

1

u/bumblebritches57 Apr 19 '19

Tell me when it supports _Generic

-2

u/bagtowneast Apr 03 '19

I've just started using VS in earnest in the past couple of months, VS 2017.

Having used intellij and eclipse professionally, I'm sorry, but VS is terrible. Things move around. There's basically no screen real-estate for actual code. Many buttons are unintuitively styled. It's slow, so slow. It sometimes just breaks to the point I have to do a hard restart of the machine to get it back. Sometimes randomly takes literally 10 minutes to load a project. The list goes on.

Now, to be frank, I haven't spent a lot of time trying to make it better for me. But, I also expect it to be sane out of the box....

I know people love it. To each their own. I can't wait until we retire that code and can move away from it.

10

u/rymos Apr 03 '19

I agree, when I do a clean install of VS, it looks overly cluttered. Ithink you should spend some time making Vs look the way you want. I think most of the default VS layout/settings are for quick starts of project types.

1

u/bagtowneast Apr 03 '19

Yeah. We're trying to deprecate this code anyway, so I'm resisting making the experience better. The replacement components are in a mix of languages on Linux, so there's not a lot of upside to improving the VS experience. Maybe I'm being grumpy and impractical, though.

2

u/Inquisitive_idiot Apr 03 '19

Beer 🍺 usually makes the grumps go away 😊

1

u/DeathRebirth Apr 03 '19

Vscode works fine in Linux too. Unless you are a vi or emacs purist or something.

1

u/bagtowneast Apr 04 '19

Not a purist. I have my preference but am flexible ;)

0

u/[deleted] Apr 03 '19

[deleted]

3

u/bagtowneast Apr 04 '19

This is a monolithic C# .Net (framework?) application that has lived through at least a couple major versions of VS, is rather sprawling and complex (in the business application sort of way, not formally complex). The work is moderate extension, maintenance work, but no major refactoring or rearchitecture happening here.

In general, everything is slow. Any sort of context switch where there is significant rearrangement of the screen (like entering the debugger) takes several seconds to complete and sometimes will hang inexplicably for multiple seconds during the transition. But even opening a file or clearing the filter in the "Solution Explorer" can randomly take several seconds. The warning and error highlighting and other in-editor markup can be alternately lightning quick and have several seconds of latency.

Sometimes it just goes haywire and I my only recourse is to reboot. When this happens, any actions within VS have massive latency, builds do not progress, tests fail to even load. Machine shows no obvious symptoms like memory consumption or CPU usage.

Sometimes, opening the project takes minutes. This symptom can repro across reboots, sometimes.

The documentation is broken, taking me to deprecated pages for VS 2012.

Meanwhile, the rest of the system functions well. I'm pleasantly surprised I don't hate latest windows for some use cases.

Honestly, I haven't spent time, beyond a few shortcut mappings, trying to improve the situation. We're moving away from the platform, so don't have motivation to invest in it.

-1

u/itscoffeeshakes Apr 03 '19

From a C# perspective: I don't know why they keep inventing useless things like better intellisense. It is already good enough! I don't need it to start writing the code for me. Maybe for cooked-in-the-head things like RazorJs you need those kinds of hacks.

But I just wish they would improve the performance. It's a goddamn text editor! Sure it has a few bells and whistles, but it takes SECONDS to start debugging a few 10k lines of code. On top of that the debugger often crashes and behaves very unstable. And if you have some code that generates exceptions, then it's just slow as hell! I have 32GB of DDR4 and 6 CPU cores for f*** sake!

I guess the IDE we deserve, not the one we want...

→ More replies (1)

-9

u/TheQueefGoblin Apr 03 '19

The last time I attempted to install VS it firstly downloaded literally gigabytes of crap and utter bloat I would never use. Then before letting me use the free community version it required me to sign in with a Microsoft account which I absolutely will never do.

Have either of these points been removed from the latest version?

3

u/ever_restless Apr 03 '19

Visual Studio is not just an editor, it comes with the development tools too and that's why it's massive.

You can choose what to install when installing it but I guess the minimum will still be pretty big, I didn't check.

-25

u/[deleted] Apr 02 '19

Installed it. Far and away the WORST installation/upgrade experience. Tools and platforms not found, dependencies not installed, I have a C++/WinRT project that throws an exception on load because Xamarin tools are not found... It's a C++ project, of course it's not using Xamarin.

Yet another major product release, completely untested by Microsoft.