Comments (8)
It's definitely on my list of stuff to do. Should be pretty straightforward.
I added the C# indent file yesterday that helps somewhat with Vim's built in = indenting... but it doesn't have all the capabilities of NRefactory.
from omnisharp-vim.
Would Omnisharp provide significant better formatting than astyle does?
from omnisharp-vim.
I'm not sure that it would.... but it seems to me that seeing as we already have NRefactory installed, we may as well use it. It isn't much code for me to add to OmniSharp and it removes the astyle dependency.
It has a ton of options for code formatting (see https://github.com/icsharpcode/NRefactory/blob/master/ICSharpCode.NRefactory.CSharp/Formatter/CSharpFormattingOptions.cs)
from omnisharp-vim.
Okay, sounds reasonable. When its implemented I may consider integration into vim-autoformat. (https://github.com/Chiel92/vim-autoformat)
from omnisharp-vim.
I added a code formatter command. It's currently hard coded to format the same way that VS does it. Let me know if this will do for now. Probably no time to spend on this until next week.
from omnisharp-vim.
Great! I will try it out
from omnisharp-vim.
I can confirm that this works quite well for my purposes.
from omnisharp-vim.
Closing for now, it does what I need.
from omnisharp-vim.
Related Issues (20)
- Configurable bold, italic and underline styles HOT 2
- omnisharp can't start on wsl with neovim HOT 2
- Can't run omnisharp-roslyn (macOS) HOT 13
- Failed to load Project with no error message HOT 18
- Can't use out-of-box because of MSBuild HOT 6
- Omnisharp server doesnt start HOT 5
- Building the project HOT 2
- How do I stop OmniSharp from creating '~/.omnisharp' directory? HOT 3
- There is a bug when I use vim-omnisharp in termux with mono HOT 7
- Need Help - Mac OS M2 - No Popups HOT 1
- ddc-ultisnips error HOT 1
- [Bug] Poor Performance in Some Unity Projects HOT 3
- Poor syntax highlighting and server load time after a minimal NVIM setup HOT 19
- Limited OmniSharp Commands (failing to properly call/start rosylin server?) HOT 64
- Not an editor command: OmniSharp* HOT 2
- OmniSharpDebugTest throws error relative to number of parameters the first time it is run HOT 1
- omnisharp can't run tests HOT 3
- Unable to get custom types using omnisharp-vim HOT 5
- Silently failing HOT 3
- When several solutions for a given cs file, solution selection prompts block the UI by being spammed
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 omnisharp-vim.