How can I comment a part of code in Xamarin Studio?

The question is as simple as it sounds:

I need to comment/uncomment part of my code. Is there a shortcut to do this?

Posts

  • SKallSKall USMember ✭✭✭✭

    CTRL + ALT + C

    or

    Right click, Toggle Line Comment(s)

  • paulyoungpaulyoung USMember

    This isn't working for me in Version 5.8.3 (build 1).

  • paulyoungpaulyoung USMember

    It appears that this only isn't working for me in F# files.

  • AndyDentAndyDent AUMember ✭✭

    You have to type in the bracketing using parens yourself
    (* this is a
    multi-line comment
    *)

  • RofekRofek USMember

    Highlight the portion of the code you want to comment then press forward-slash twice ( // ) and it will comment out what you've selected :)

  • dpedrinhadpedrinha DEMember ✭✭✭

    Visual Studio = Ctrl + K, then C

  • QuasySabriQuasySabri USMember
    edited August 2016

    command + / for Mac will comment or uncomment the selected lines.

  • EBatikEBatik NLMember ✭✭✭

    @dpedrinha uncomment?

  • EBatikEBatik NLMember ✭✭✭

    Ctrl + K , then U ! ok

  • SnehalJadhav.7507SnehalJadhav.7507 USMember ✭✭

    For xamarin studio: axml page
    Select the lines you want to comment then
    Ctrl+ alt+ C

  • DyaryDyary Member ✭✭
    edited August 2018

    CTR+K+C

    and for uncommenting a block of code use CTR + K + U

Sign In or Register to comment.