Git Product home page Git Product logo

csharp-mode's Introduction

csharp-mode

This is a mode for editing C# in emacs. It’s based on cc-mode, v5.30.3 and above.

Travis-CI build-page. Build-status: https://api.travis-ci.org/josteink/csharp-mode.png

Main features

  • font-lock and indent of C# syntax including:
    • all c# keywords and major syntax
    • attributes that decorate methods, classes, fields, properties
    • enum types
    • #if/#endif #region/#endregion
    • instance initializers
    • anonymous functions and methods
    • verbatim literal strings (those that begin with @)
    • generics
  • automagic code-doc generation when you type three slashes.
  • intelligent insertion of matched pairs of curly braces.
  • imenu indexing of C# source, for easy menu-based navigation.
  • compilation-mode support for msbuild, devenv and xbuild.

Usage

This package is currently available on MELPA & Marmalade. Install using M-x package-install<RET>csharp-mode.

Once installed the package should be automatically used for files with a ‘.cs’-extension.

Note: This package is also available on MELPA-stable for those who don’t want or need bleeding edge development-versions.

For a better experience you may want to enable electric-pair-mode when editing C#-files. To do so, add the following to your .emacs-file:

(defun my-csharp-mode-hook ()
  ;; enable the stuff you want for C# here
  (electric-pair-mode 1))
(add-hook 'csharp-mode-hook 'my-csharp-mode-hook)

For further mode-specific customization, M-x customize-group RET csharp RET will show available settings with documentation. For configuring cc-mode settings (which csharp-mode derives from) see the cc-mode manual.

For more advanced and IDE-like functionality we recommend using csharp-mode together with Omnisharp-Emacs.

Attribution

This repo is a fork of the code originally developed by Dylan R. E. Moonfire and further maintained by Dino Chiesa as hosted on Google code.

New focus

The original csharp-mode repo contained lots of different code for lots of different purposes, some finished, some not, some experimental, some not. Basiaclly things like ASPX-mode, TFS-mode, code completion backends, etc.

All this original code can still be found in the extras-branch, but we have decided to go for a more focused approach and to throw out all dead or unused code, code we wont be maintaining.

The goal: That what we package in csharp-mode actually works and works well.

License

The original project was licensed under GPL v2, so this one is too.

csharp-mode's People

Contributors

binki avatar dinochiesa avatar jesse-black avatar josteink avatar syohex avatar wasamasa avatar ymarkovitch avatar

Watchers

 avatar  avatar

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.