-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fully Support Visual Basic (VB) #25
Comments
I'd like to see Visual Basic .Net support in Visual Studio Code, too. |
👍 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. |
I'd love to see support for it as well. +1 |
Save developers who have to work with legacy code written in VB6 like myself. Voting for this one. +1 |
I would like to see this as well! +1 |
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. |
What really missing is Debugger support especially since .NET Core 2.0 finally supports the VB language and offers a few templates. |
+1, thumbs up, whatever is needed to get this implemented |
+1 |
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 |
+1 👍 |
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? |
Sending them money is probably the most effective way of getting their
attention. Next would be introducing vscode to fellow VB coders and have
them post on this thread of their genuine desire to have the basic features
of intellisense and live debugging added to vscode
…On Tue, Sep 18, 2018, 19:25 Ethan Lindemann-Michael, < ***@***.***> wrote:
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?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKITvYopiWUN902XagLXTONXzvJoFI9Aks5ucYDNgaJpZM4HP1W2>
.
|
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? |
You may want to try CS-Script VS-Code extension. It supports VB.NET since Apr 2018: |
Upvoted, would love to use VB.NET on VSCode. |
Apparently, it doesn't work for me at least. CS-Script isn't that good at supporting VB.NET. Also, no syntax highlight fix... |
Could you please elaborate? |
No VB yet?? Do it! |
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. |
CS-Script does not have outline on VB files... |
@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? |
If you mean Visual Studio then yes. If you mean opening .csproj file in VSCode. Then NO :( |
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: |
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. |
@cartermp Could you please clarify a bit what the current status of Visual Basic is for OmniSharp (and/or VS Code):
|
@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. |
Hey man, I did the setup in visual studio code and not is working, could you please share some step by step? |
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. |
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 |
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 @habakuk007 on January 29, 2016 13:23
VB is compared to C# the advanced language - fully support it.
Copied from original issue: microsoft/vscode#2538
The text was updated successfully, but these errors were encountered: