Questions tagged [omnisharp]

OmniSharp provides refactoring and AST support for the C# language for a variety of plugins written for popular text editors, including Vim, Emacs, Atom, Sublime Text, VS Code, and Brackets.

OmniSharp is a family of Open Source projects, each with one goal - To enable great .NET development in YOUR editor of choice. ~ omnisharp.net)

Background

OmniSharp Server, a project started by Jason Imison was written with the intention of providing refactoring and AST support for the C# language for Vim and later Emacs. Initially it was intended for own use, but grew in popularity and has had wide adoption in the game development community and developers writing C# on non Microsoft platforms.

Support has since been extended by the community to include Atom, Sublime Text and Brackets. OmniSharp has grown to be an umbrella term referring to the server and all plugins.

Today OmniSharp offers a lightweight alternative to traditional IDE's for developers wishing to write in their favourite editors. Offering code completion, formatting and other popular refactoring operations, syntax checking and easy code navigation.

309 questions
12
votes
5 answers

VS Code / OmniSharp - how to set path to dotnet SDK / CLI tools explicitly

I'm using Visual Studio Code. On my machine, I have two separate installations of the Net Core SDK / dotnet CLI tools an outdated version (netcore 1.1) in the standard path %ProgramFiles%\dotnet and a recent version (netcore 2.0) installed to a…
Bogey
  • 4,926
  • 4
  • 32
  • 57
11
votes
4 answers

How to generate class with file-scoped namespace syntax (C# 10) in vs code?

I would like to generate a new C# Class or C# Interface in Microsoft Visual Studio Code following the newest C#10 file-scoped namespace syntax. https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/namespaces Beginning with C# 10, you…
Mikolaj
  • 1,231
  • 1
  • 16
  • 34
11
votes
8 answers

C# intellisense not working in VS Code

I am using Visual Studio Code and I have already loaded C# OMNISharp plugin to my system and it works all fine in my existing project/solutions. However, I just created a new solution and a new project in Visual Studio code and it sounds like for…
Lost
  • 12,007
  • 32
  • 121
  • 193
10
votes
3 answers

OmniSharp intellisense not recognizing new class file

I have a dotnet core console app I generated from the cli via dotnet new console -n EODG.VsCodeTester.Cli Using the C# Extensions extension, I right click on the project folder in VSCode, and click "New C# Class". The class/file opens just fine, but…
RevrenLove
  • 508
  • 6
  • 14
10
votes
0 answers

Debugging with Visual Studio Code on OSX Not Working Without Manual Path

I'm trying to debug a dotnet core project on OSX and keep getting a reference error that it cant find the required library. A fatal error was encountered. The library 'libhostpolicy.dylib' required to execute the application was not found in…
chris
  • 1,152
  • 1
  • 15
  • 37
10
votes
1 answer

Omnisharp sublime text errors with ASP.NET 5.0 MVC6

I'm using the new asp.net mvc via github here: https://github.com/aspnet/home and I installed the Omnisharp package for Sublime Text 3 to get C# autocomplete. I am attempting to run the HelloMvc project, which works fine when I run k kestrel and…
girlcode
  • 3,155
  • 5
  • 27
  • 41
9
votes
1 answer

Omnisharp not properly handling default dot net core 3 app in vscode

Omnisharp is showing errors and vscode keeps popping up: "there are unresolved dependencies" When I create a standard .Net 3 mvc app. I can run dotnet restore and it works properly. dotnet new mvc I've installed the dot net core 3 SDK. dotnet…
9
votes
1 answer

Put class open brace on new line as you type in Visual Studio Code [C#]

In Visual Studio Code (MacOS) I've already spend hours finding how to put open brace to the new line when you type. I type this: class Foo{ ...and press Enter. I get the closing brace automatically: class Foo{ } But I want this (like VS 2017…
Panda
  • 156
  • 1
  • 9
8
votes
0 answers

How to stop Mono "Omnisharp", the C# extension in Visual Studio code from burning up my CPU at 170%+

I've spent at least 3+ hours googling this, and everything I read in different posts online talk about IDisposable. But seeing these posts, I don't really think it would apply to me or don't know how to fix it as the answer from posts seems to be…
chuckd
  • 13,460
  • 29
  • 152
  • 331
8
votes
1 answer

Settings from the .editorconfig are not respected in Omnisharp / VS Code

I'm trying to set up my Visual Stuido Code so that Omnisharp uses settings supplied in an .editorconfig, as described in https://www.strathweb.com/2019/07/editorconfig-support-in-omnisharp-and-c-extension-vs-code/. I set up a new .net-core 3.1…
MonteCarlo
  • 81
  • 1
  • 2
8
votes
4 answers

Omnisharp in VS Code produces a lot of warnings about a Unity project. Why?

Omnisharp in VS Code produces a lot of warnings about a Unity project. Why? When I open a script in VS Code from a Unity Editor here is what I see: The Omnisharp produces warning. Here are a few of them: [warn]: OmniSharp.MSBuild.ProjectLoader …
qqqqqqq
  • 1,831
  • 1
  • 18
  • 48
8
votes
1 answer

How do I change the language of C# error hints?

Since omnisharp 1.16 update (don't know if it is the point) I have error hints in my system's language (Russian). But my VSCode locale is English. Where I can set error hints' language back to english? I don't have any localization language packs…
luvjungle
  • 1,046
  • 7
  • 14
8
votes
6 answers

VS Code Intellisense not showing suggestions in C#

Intellisense in VS Code only shows the previously used keywords and identifiers(in the current program) and not suggesting the new ones.The autocomplete only suggests the previously used keywords and identifiers.
Chirag Sharma
  • 91
  • 1
  • 3
8
votes
2 answers

How can I get OmniSharp VSCode intellisense to work with WSL-compiled code?

When I run dotnet build on my code from my WSL (Windows Subsystem for Linux) distro, C# intellisense breaks and I get errors like the following: I've managed to set up the launch configurations found here, but that doesn't help with Intellisense,…
8
votes
1 answer

vs code c# omnisharp , how can I debug external library

I am trying to step through my ASP net core library code in visual studio code and don't know how to basically disable "just my code" and attach pdbs. The default stack inspecting omnisharp behavior during a breakpoint hit is:…
Ovidiu Buligan
  • 2,784
  • 1
  • 28
  • 37
1
2
3
20 21