Comments (32)
I'd like to see Visual Basic .Net support in Visual Studio Code, too.
Of course including all the features it provides for C# development.
This would be awesome because there is no good working IDE for VB .Net next to Visual Studio, which is only running on Windows platform.
So this would be a major step to push VB .Net language usage, when you can use all supported platforms to develop with VB .Net.
from vscode-csharp.
What really missing is Debugger support especially since .NET Core 2.0 finally supports the VB language and offers a few templates.
from vscode-csharp.
You may want to try CS-Script VS-Code extension. It supports VB.NET since Apr 2018:
from vscode-csharp.
It is a pity that VB is not supported. .NET Core supports it now, and considering the beginner-friendly and business-friendly nature of VB, it would be a great addition to omnisharp-roslyn and omnisharp-vscode.
from vscode-csharp.
Save developers who have to work with legacy code written in VB6 like myself.
Voting for this one. +1
from vscode-csharp.
Closing this as by design. The C# plugin is for C# and there will be some future investments that may allow for a proper VB plugin to be built that uses the same core Roslyn-based infrastructure. But there aren't any plans to incorporate a full fidelity VB experience into the C# OmniSharp experience.
from vscode-csharp.
@cartermp Could you please clarify a bit what the current status of Visual Basic is for OmniSharp (and/or VS Code):
- Does your comment and closing the issue mean that OmniSharp is strictly a C# language service, and that a Roslyn-based Visual Basic language service would have to be developed as a fork / from scratch and not as part of the OmniSharp project?
- If so, do you know of any such project that one could contribute to?
(It's a bit surprising, since the compilers, workspaces and other infrastructure of Visual Basic is shared in Roslyn.)
from vscode-csharp.
👍 for Vb. I also recommend a language neutral way of handling the msbuild project file for any .net language since the XML structure would be identical.
from vscode-csharp.
No VB yet?? Do it!
from vscode-csharp.
@cartermp Could you please respond to the above questions and elaborate on this decision. There are a lot of people that have to work with legacy VB code.
from vscode-csharp.
In fact, I have just published the extension update so you can get your VB mapper if you just update the extension
from vscode-csharp.
I'd love to see support for it as well. +1
from vscode-csharp.
I would like to see this as well! +1
from vscode-csharp.
+1, thumbs up, whatever is needed to get this implemented
from vscode-csharp.
+1
from vscode-csharp.
I was going to ask, is vb.net supported ? But seeing this thread, I have to assume this extension only supports C# and not vb.net . I think that is going to prevent me from switching for full visual studio to visual studio code
from vscode-csharp.
+1 👍
from vscode-csharp.
Does up-voting increase the likelihood of this feature being implemented? What do we, as users of OmniSharp, need to do in order to draw attention to this feature?
from vscode-csharp.
from vscode-csharp.
Would it make a difference if donations were sent to the omnisharp team for VB.NET integration with VSCode? @david-driscoll @DustinCampbell
This feature request was added to the Future milestone which is no longer active. Should it be moved to the backlog milestone?
from vscode-csharp.
Upvoted, would love to use VB.NET on VSCode.
from vscode-csharp.
You may want to try CS-Script VS-Code extension. It supports VB.NET since Apr 2018:
Apparently, it doesn't work for me at least. CS-Script isn't that good at supporting VB.NET. Also, no syntax highlight fix...
from vscode-csharp.
Could you please elaborate?
from vscode-csharp.
I am not sure I understand what you are trying to say.
VB is supported by CS-Script plugin since Apr 2018. VSCode does Syntax highlight and CS-Script does intellisense, execution and debugging. The screenshot (two posts above) illustrates it.
So "doesn't work for me" and "do it" without any details do not help the discussion.
from vscode-csharp.
CS-Script does not have outline on VB files...
from vscode-csharp.
@oleg-shilo Thanks for the extension. It's a great way to execute C# and VB like Python. Does it work with VS Projects too?
from vscode-csharp.
If you mean Visual Studio then yes.
If you mean opening .csproj file in VSCode. Then NO :(
CS-Script follows Python approach. A single script file is a complete expression of all runtime dependencies: f.cs files, assemblies and packages. So .csproj does not have role in any scripting scenario.
from vscode-csharp.
CS-Script does not have outline on VB files
CS-Script does not implement outlining at all but only intellisense operations, execution and debugging integration. Outlining is the responsibility of IDE. You can use CodeMap extension. It supports 10 languages including C#. But for VB you will need to extend it:
https://marketplace.visualstudio.com/items?itemName=oleg-shilo.codemap
from vscode-csharp.
CS-Script does not have outline on VB files
CS-Script does not implement outlining at all but only intellisense operations, execution and debugging integration. Outlining is the responsibility of IDE. You can use CodeMap extension. It supports 10 languages including C#. But for VB you will need to extend it:
https://marketplace.visualstudio.com/items?itemName=oleg-shilo.codemap
Could you please elaborate?
Hey man, I did the setup in visual studio code and not is working, could you please share some step by step?
from vscode-csharp.
CodeMap does not have built-in support for VB so you will need to enable it by setting up a new VB custom mapper. It is actually quite simple. You have two choices. Either define a tiny TS class that analyses the specified document lines and "marks" your functions as outlining elements or simply define (in the VSCode settings file) a regular expression that detects VB functions. This is the simplest approach even though it is less flexible:
The guide is here: https://github.com/oleg-shilo/codemap.vscode/wiki/Adding-custom-mappers
For VB syntax you simply need to add this section in the VSCode settings.json:
"codemap.vb": [
{
"pattern": "[Cc]lass .*",
"clear": "",
"suffix": "",
"role": "class",
"icon": "class"
},
{
"pattern": "([Ff]unction|[Ss]ub) (.*?)[(|:{]",
"clear": "[Ff]unction |[Ss]ub |\\(",
"suffix": "()",
"role": "function",
"icon": "function"
}
],
It is my very quick and dirty solution but you may further experiment with it.
from vscode-csharp.
In fact, I have just published the extension update so you can get your VB mapper if you just update the extension
Thank you. Is working now. Other question, sorry for many questions. I am setup notepad ++ to use visual basic .net
I cannot find the file css_config. Dont know how to run the command. It is indicatind that the file css_config does not exist
https://www.cs-script.net/cs-script/help-legacy/Config.html
from vscode-csharp.
This is great new, could someone currently using VB recap this thread with a trial of the current state of things programming visual basic in visual studio code and with omnisharp ?
Does debugging work, does intellisense work properly and in context ?
from vscode-csharp.
Related Issues (20)
- Simplify name of attach to process command HOT 9
- View template generations
- Solution Explorer should support moving files
- Support switching target frameworks
- Indentation doesn't seem to take the braces into account HOT 2
- Brace completion doesn't take existing end brace into account
- Parameter help doesn't work inside of lamdas
- Reordering classes, methods and so on using Outline window
- C# Dev Kit LSP "'end' must not be less than 'start'"
- Option to disable implicitly adding `using` directives HOT 4
- C# code analysis fails to initialize with error `System.ArgumentException: filePath` HOT 1
- Request codeLens/resolve failed in git diff HOT 2
- Auto doc comment generation and other formatOnType features broken HOT 9
- Request textDocument/foo failed HOT 10
- Creating a new class under a folder in Solution Explorer does not give the class correct namespace HOT 2
- Iteration Plan for June 2024
- Please default to P2P reference HOT 1
- Standardize UI Navigation with `workbench.action.navigate` HOT 1
- test HOT 1
- If your .NET version is too old, you get no intellisense and an unhelpful error. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-csharp.