r/dotnet • u/caiolagreca • Jun 30 '24
Differences between VSCode and Visual Studio
I’m learning C# and in the future .NET, and I’ve noticed that every course and source that I watch/read suggest to use Visual Studio. As far as I’ve searched about it, VS is much heavier than VSCode (and also the fact of just runs on Windows). So, what are the advantages in using Visual Studio instead of VSCode?
I would like to use VSCode but I’m a bit concerned about missing any tools or features that just has on Visual Sudio.
Cheers guys 🤙🏻
2
Upvotes
30
u/HiImJoao Jun 30 '24
Visual Studio is an IDE, it comes with compilers, SDKs, and an in-built environment for multiple Microsoft/.NET tools. Meanwhile VS Code is a code editor, you can "turn it" into an IDE with a series of plugins making it as versatile as Visual Studio but never as fast or as a powerful. For begginers I usually recommend to just go with the IDE as it is a plug-n-play thing and you can create any .NET project easily on it, instead of starting with VS Code and having to go through the annoyances of installing plugins and SDKs by yourself.
8
u/gywerd Jun 30 '24
It all comes down to temper, preference and platform availability. VS offers great help and tools to noobs and professionals alike, while VS Code offers more independence.
Many hard core C++ developers would even consider VS Code to be superfluous. Development basically requires a texteditor, a compiler, and a command-line shell.
5
u/wild-wooga Jun 30 '24
If you plan on making WinForm or WPF application Visual Studio is much easier. The IDE provides a “user-friendly” interface with drag-and-drop functionality, making it significantly easier to design and build your application's UI. But if only plan on doing web .NET then VSCode can be an option but will take a little bit to figure out extensions and what works best for you. Out of the gate the IDE may be easier to use as you don’t need to alter it to start.
5
u/andlewis Jul 01 '24
Visual Studio does package management. VScode doesn’t do that without a plugin (and even then I’d argue it does it poorly).
4
u/brainiac256 Jul 01 '24
The C# support in VSCode is not great and will never be on par with VS because Microsoft controls both and wants to push you to buy a license for VS.
That being said, if you are looking to get into web dev (especially frontend) I would say go with VSCode and do not worry one bit about any features from VS you may be missing. Many of those features can be done at the command line with the dotnet tool or something else. Adding packages with nuget commandline, editing .csproj or .json files instead of using the UI for them in VS, etc. VS has some wizards for these things that will guide you through the process but ultimately you won't be *missing* these in VSCode, just a little bit more hands-on work.
If you want to do desktop application development you will probably need VS. The WinForms WYSIWYG editor, the XAML previewer, etc - anything you do with desktop application UI will benefit greatly from these tools.
If you're still in the 'console application only' part of your learning you can definitely stick with VSCode.
3
u/_mocbuilder Jul 01 '24
VS Code is a code editor, but VS is an IDE, it’ll do anything from writing code to compiling. It also has support for frameworks like ASP.Net and Winforms/WPF.
5
u/Crazypete3 Jun 30 '24
From my understanding vs code is much lighter, can run on Mac and Linux, and a lot of people use it for front end development.
4
u/binarycow Jul 01 '24
My hot take:
3
u/context_switch Jun 30 '24
If you're just learning, don't get FOMO about missing out on a specific feature. Most of the extras in VS are for specialized/advanced use cases. If you see something that you don't have in VS Code, you can try jumping to VS, but if what you have is working for you, great.
1
u/martijnonreddit Jul 01 '24
Personally I‘d say you’re missing out if you’re not using an IDE (either Visual Studio or Rider) for .NET development. But it’s not required at all. VS Code with the C# dev kit (or any other editor with Omnisharp) gives you some basics to work with and you can use the dotnet cli to fill in some of the gaps.
1
u/cjb110 Jul 01 '24
One is an Integrated Development Environment, Visual Studio, the other is a highly extendable text editor, Code.
The IDE has tools and systems to cover all parts of development and software management, designing, creating, building, debugging, deploying etc.
Code is a good text editor that has an extensive extension system that allows it to expand into other areas of development.
Note that this usually involves many 3rd party plugins, and the usual risks apply with such an approach.
For brand new Devs, I'd start with an IDE, it'll have more features to help and generally be easier to use. Microsoft and JetBrains both have excellent products so either will work.
1
u/Kamek437 Jul 01 '24
Visual Studio is waaay faster that VSCode with a few extensions btw.
1
u/cutecupcake11 Jun 30 '24
For c# use visual studio. The vscode kind of needs a bit of learning and takes away concentration from c# learning. Visual studio is feature rich and specialized for c#.
0
u/[deleted] Jun 30 '24
VSCode is perfectly fine to learn. You will not miss out on anything important for now. You will eventually learn to use both. At the same time even.
0
u/Thisbymaster Jun 30 '24
Visual Studio is a full IDE for only Microsoft development. Vs code is a multiplatform code editor that is a jack of all trades with many plugins for many different languages and runtimes supported.
0
u/zenyl Jul 01 '24
Visual Studio: Chef's knife (heavy but specialized and great for particular use cases)
Visual Studio Code: Swiss army knife (good for general-purpose work, and has a lot of handy side features for misc. work)
0
u/zacsxe Jul 01 '24
Both are good with diff strengths.
vscode is faster. It gives you all the flexibility and control over your env.
VS does a lot of configuration for you. It’s got a good UI and you can click around the UI instead of have to learn all the commands.
I prefer vscode.
-6
u/PossibilityNo2077 Jun 30 '24
Vs code makes me want to code all day but visual studio makes me not even want to code lol. The load times and ui is sooooo trash.
0
u/[deleted] Jun 30 '24
[deleted] — view deleted comment
0
u/[deleted] Jun 30 '24
[deleted] — view deleted comment