Target users of Visual Studio Code? - visual-studio-code

I've been developing on Visual Studio, and here comes Visual Studio Code which is described as a source code editor that supports multiple platforms. For me, I find it promising considering it's a lightweight editor compared to Visual Studio.
Since Visual Studio Code is still a baby, is it safe to say as time passes by and this baby becomes mature, this will be the new Visual Studio considering it can run on multiple platform?
Does Visual Studio Code has a roadmap on the upcoming features?

Visual Studio Code will not replace the regular Visual Studio, if that's what you're asking. VSCode is intended to be a very lightweight, code-focused IDE. There are a plethora of features present in Visual Studio that I don't expect we'll ever see in VSCode simply because they are not within the scope of the project. For example, I don't think you'll ever see the designer in VSCode, which is something you would sorely miss if you were developing a WPF or WinForms application.
Right now VSCode seems to be mostly targeting web application developers using ASP.NET 5 and node.js.
As for what's ahead for VSCode, I'm not sure if a roadmap has been laid out anywhere but I do know that a plugin/extension system is in the works, along with ES6/7 support and a few other things.
If you want to follow the development of VSCode, check out their blog, Twitter, and UserVoice.

Related

Problems with save operation in Visual Studio VSIX custom editor and .Net 6.0 Web application projects

We have built a Visual Studio Extension (VSIX). It is a custom editor for editing a special file that contains definitions for the datamodel in our CMS.
We are porting our CMS to .Net 6.0 from .Net 4.8 ( framework -> core ), however we are struggling getting the editor to work in .Net 6.0 projects. It works fine in web applications written in .Net 4.8, but not in .Net 6.0 web application projects.
Whenever we click the save button in Visual Studio, we get a very general and non specific error message that says: "The operation could not be completed. Unspecified error"
We run the extension with source code in debug mode using the Visual Studio SDK, and there is no exception that is picked up by Visual Studio. ( We use one Visual Studio instance to start another instance of Visual Studio in debug mode, as normal with VSIX projects). Breakpoints etc. work, and we have activated all exceptions in the debugger. When we click save in Visual Studio projects, we get the error message before any method is called in our code. We do not even enter the "IVsPersistDocData2.SaveDocData" method of the "WindowPane" class. The plugin is written in C#. Apart from save, everything works fine. The editor loads fine and function as normal in both types of projects.
There must be some difference in the way the extension integrates with Visual Studio that differ between .Net4.8 projects and .Net6.0 projects. Of course, there are differences in file paths etc in these projects, but I do not see how this is the root of the problem as we do not even get to the stage where any method is called in our editor source code.
As a test I created a very simple extension with only the bare minimum to enable a WindowPane extension, and I get the same error message when saving in 6.0 projects
We created the first version of the plugin back in 2013, using templates from Microsoft and have been updating it for every new version of Visual Studio. There have been some changes in the documentation and projects templates for VSIX, but unfortunately, there is no longer any C# template for custom editors, only C++. (https://learn.microsoft.com/en-us/visualstudio/extensibility/walkthrough-creating-a-custom-editor?view=vs-2022) Pherhaps someone knows any workings examples of custom editors written in c#?
So, we are a little stuck, the error message does not give us any clue to what is wrong. I have not found any documentation that could explain differences in Net 4.8 and Net 6.0 web projects that could cause this.
Anyone had a similar problem? Or perhaps a clue to what is causing this.
(BTW, we are using the latest version of Visual Studio 2022 Community and Windows 11)
After opening a support incident with Microsoft, further investigation and live debugging pointed to problems with VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode.SaveItem and a possible internal bug in Visual Studio.
A temporary workaround suggested by Microsoft support, was to add the definition of IPersistFileFormat to the WindowPane implementation. ( None of the methods needed to be implemented. )
This solved the problem for us. The definition of our working WindowPane is now:
public sealed class OntologyDesignerEditorPane : WindowPane, IVsPersistDocData2, IPersistFileFormat, IVsFileChangeEvents

Does VSCode have a different view in mac and in windows?

I am beginner programmer and have just installed VSCode. But to way VSCode looks in the tutorials is different from the one I have.
I mean the Left most and the Topmost looks different.
So I cant flow the tutorial and almost all tutorials has the same look.
The links of the sreenshots are down below:
Is my version older or it looks like that on windows or anything else, please explain step-by-step cause I am new to this. Thanks a lot!
Sorry if it is a bad Question!
You installed Visual Studio which is a more powerful IDE from Microsoft. Don't confuse it with the editor Visual Studio Code.
There is an answer explaining the main differences between the environments: https://stackoverflow.com/a/33798601/10770079
Visual Studio (full version) is a "full-featured" and "convenient" development environment.
Visual Studio (free "Express" versions - only until 2017) are feature-centered and simplified versions of the full version. Feature-centered meaning that there are different versions (Visual Studio Web Developer, Visual Studio C#, etc.) depending on your goal.
Visual Studio (free Community edition - since 2015) is a simplified version of the full version and replaces the separated express editions used before 2015.
Visual Studio Code (VSCode) is a cross-platform (Linux, Mac OS, Windows) editor that can be extended with plugins to your needs.
You downloaded Visual Studio the IDE.
Visual Studio Code is a pseudo-IDE style text editor.
Be sure you look up specifically Visual Studio Code Download for [ insert operating system here ].

Using VSCode Extensions in Visual Studio

Today I found a VSCode extension that I would very much love to use in Visual Studio 2017 (Pro or Enterprise). I'm not at all familiar with VSCode. Are the platforms entirely different, or is there some hope that I could somehow modify the extension and "port it over"?
Are the platforms entirely different [...]
Yes, they are - VSCode extensions run in a JavaScript engine (and are usually written with TypeScript), while Visual Studio extensions seem to run on .NET (usually C#). They also have different extension APIs:
Visual Studio 2017 SDK
Visual Studio Code Extension API
That doesn't mean that extension couldn't be ported over of course, provided Visual Studio has equivalents for all the required APIs, but it would essentially be a rewrite.
Now, there's an exception to this with language servers, using Microsoft's Language Server Protocol. It is designed to be IDE-independent and servers can be written in basically whatever language you prefer. There's LSP clients implementations for both VSCode (built-in) and Visual Studio. The extension you linked doesn't fall under that though.

What's the currently most endorsed/supported web build script engine for Visual Studio 2017 / Code?

After reading this article (English translation here) I wonder what's the current situation for using web build script engines in Visual Studio Code.
What's the currently most endorsed/supported web build script engine for Visual Studio Code?
Is there a blog article available, written by the VS Code team?
So far I know, VSCode does not recommend any specific build script engine and supports all. You can find the details in the vscode docs- https://code.visualstudio.com/docs/editor/tasks#_task-autodetection

Visual Studio Code replacing Visual Studio

I just came to know about Visual Studio Code. I would like to know, can I replace Visual Studio for all .NET development related work?
Can I save my cost of Visual Studio licensing?
What is there in Visual Studio which is not there in Visual Studio Code?
This question already has an answer here and here.
The list of differences is huge.
Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS,
with emphasis in just writing the code instead of dealing with
debugging, compiling, testing, refactoring, and all the other things
that make Visual Studio great.
The people using Visual Studio Code will probably be those on a Mac
who will just deal with client-side technologies (HTML/JS/CSS) and do
not want to install Windows in order to do that.
People using Windows and developing C#, F# or VB will continue to use
Visual Studio 2015.
Also the difference is that .NET has been split into two: .NET Core
(Mac/Linux/Windows) .NET Framework (Windows only) All native user
interface technologies (Windows Presentation Foundation, Windows
Forms, etc) are part of the framework, not the core.
Also, Visual Studio tends to be oriented around Projects & Solutions.
Projects have a large amount of scaffolding (pre-generated starting
templates) and features.
VS Code looks to be presently oriented around files, as a glorified
text editor, and no project scaffolding exists.
Source : MSDN forum and quora