Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

Dan Handevik

@Dan Handevik
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Code Folding (Regions)
    D Dan Handevik

    I use regions extensively around every method/property. Keeps my classes neat and easy to glance through. (see example below)

    #region public string Name
    /// /// Lorem ipsum...
    ///
    public string Name {
    get {return _name;}
    set {_name=value;}
    }
    private string _name="default";
    #endregion

    I have written macros that creates/updates the regions and for folding/unfolding the current or all regions in a class. Just press Ctrl+d when cursor is in/on a method/property and you have the correct region and documentation for the member as well... See article about macros here[^] or download the latest version[^].

    /Dan http://dhvik.blogspot.com

    The Lounge csharp html css visual-studio com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups