Code Monkey home page Code Monkey logo

Comments (8)

nosami avatar nosami commented on May 22, 2024

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.

chtenb avatar chtenb commented on May 22, 2024

Would Omnisharp provide significant better formatting than astyle does?

from omnisharp-vim.

nosami avatar nosami commented on May 22, 2024

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.

chtenb avatar chtenb commented on May 22, 2024

Okay, sounds reasonable. When its implemented I may consider integration into vim-autoformat. (https://github.com/Chiel92/vim-autoformat)

from omnisharp-vim.

nosami avatar nosami commented on May 22, 2024

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.

svermeulen avatar svermeulen commented on May 22, 2024

Great! I will try it out

from omnisharp-vim.

svermeulen avatar svermeulen commented on May 22, 2024

I can confirm that this works quite well for my purposes.

from omnisharp-vim.

nosami avatar nosami commented on May 22, 2024

Closing for now, it does what I need.

from omnisharp-vim.

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.