Giter VIP home page Giter VIP logo

Comments (32)

kolbma avatar kolbma commented on June 16, 2024 12

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.

pemo11 avatar pemo11 commented on June 16, 2024 6

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.

oleg-shilo avatar oleg-shilo commented on June 16, 2024 6

You may want to try CS-Script VS-Code extension. It supports VB.NET since Apr 2018:

vscode_vb

from vscode-csharp.

tthiery avatar tthiery commented on June 16, 2024 5

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.

sunheat avatar sunheat commented on June 16, 2024 4

Save developers who have to work with legacy code written in VB6 like myself.

Voting for this one. +1

from vscode-csharp.

cartermp avatar cartermp commented on June 16, 2024 4

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.

govert avatar govert commented on June 16, 2024 4

@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.

borgdylan avatar borgdylan commented on June 16, 2024 3

👍 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.

Fleischhauer avatar Fleischhauer commented on June 16, 2024 1

No VB yet?? Do it!

from vscode-csharp.

chtenb avatar chtenb commented on June 16, 2024 1

@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.

oleg-shilo avatar oleg-shilo commented on June 16, 2024 1

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.

jaxspades avatar jaxspades commented on June 16, 2024

I'd love to see support for it as well. +1

from vscode-csharp.

Falthazar avatar Falthazar commented on June 16, 2024

I would like to see this as well! +1

from vscode-csharp.

 avatar commented on June 16, 2024

+1, thumbs up, whatever is needed to get this implemented

from vscode-csharp.

sharkguto avatar sharkguto commented on June 16, 2024

+1

from vscode-csharp.

shodanx2 avatar shodanx2 commented on June 16, 2024

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.

gustavomf-cit avatar gustavomf-cit commented on June 16, 2024

+1 👍

from vscode-csharp.

loligans avatar loligans commented on June 16, 2024

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.

shodanx2 avatar shodanx2 commented on June 16, 2024

from vscode-csharp.

loligans avatar loligans commented on June 16, 2024

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.

E4N avatar E4N commented on June 16, 2024

Upvoted, would love to use VB.NET on VSCode.

from vscode-csharp.

IdkGoodName avatar IdkGoodName commented on June 16, 2024

You may want to try CS-Script VS-Code extension. It supports VB.NET since Apr 2018:

vscode_vb

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.

oleg-shilo avatar oleg-shilo commented on June 16, 2024

Could you please elaborate?

from vscode-csharp.

oleg-shilo avatar oleg-shilo commented on June 16, 2024

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.

APerricone avatar APerricone commented on June 16, 2024

CS-Script does not have outline on VB files...

from vscode-csharp.

jaxspades avatar jaxspades commented on June 16, 2024

@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.

oleg-shilo avatar oleg-shilo commented on June 16, 2024

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.

oleg-shilo avatar oleg-shilo commented on June 16, 2024

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.

rogerbk avatar rogerbk commented on June 16, 2024

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.

oleg-shilo avatar oleg-shilo commented on June 16, 2024

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"
    }
  ],

image

It is my very quick and dirty solution but you may further experiment with it.

But this is what it does:
image

from vscode-csharp.

rogerbk avatar rogerbk commented on June 16, 2024

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.

shodanx2 avatar shodanx2 commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.