Skip to content
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

Global omnisharp.json #717

Closed
DustinCampbell opened this issue Dec 31, 2016 · 3 comments
Closed

Global omnisharp.json #717

DustinCampbell opened this issue Dec 31, 2016 · 3 comments
Assignees
Labels

Comments

@DustinCampbell
Copy link
Contributor

From @zeroskyx on December 30, 2016 17:12

Is there any way to use omnisharp.json globally instead of having to copy it to every project manually?
Placing one in C:\Users<User>\AppData\Roaming\Code\User does not seem to work.

Help is greatly appreciated. Thanks in advance
-Simon

Copied from original issue: dotnet/vscode-csharp#1101

@willl
Copy link
Member

willl commented Jan 1, 2017

@zeroskyx From what I can see in the wiki, if you don't include an omnisharp.json file in the code folder, it will use what is specified in the config.json or environment variables (in that order). Those two are essentially your global version of omnisharp.json.

@zeroskyx
Copy link

zeroskyx commented Jan 1, 2017

Thanks for the info!
However, unfortunately this does not work for vscode since there is no default config.json.

@filipw
Copy link
Member

filipw commented Jan 1, 2017

However, unfortunately this does not work for vscode since there is no default config.json.

you could create a config.json with your global settings in the place where VS Code extension is installed. For example, on a mac that's ~/.vscode/extensions/ms-vscode.csharp-1.6.0/bin/omnisharp.

The downside is, that would be overwritten on updates.

That said, it wouldn't be too big of a deal to add omnisharp support for global config loaded from %appdata%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants