Block commenting

Discussion in 'Basic4ppc Wishlist' started by Mistrel, Oct 13, 2007.

  1. Mistrel

    Mistrel Member

    One of my favorite features of the PureBasic IDE is that I can do block commenting on a selection.

    For example, if I select a few lines of code I can hit Ctrl-B and a comment character will be added to the front of each line. If I hit Alt-B the comments are removed for whatever lines I have selected.

    I think someone mentioned on another forum that Visual Studio can do this as well.
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can block comment / uncomment code using the two buttons on the toolbar (the two buttons with small green and black lines).
  3. Mistrel

    Mistrel Member

    Yes but it's not a hotkey! :)
  4. Cableguy

    Cableguy Expert Licensed User

    Quite right, it just a click!!!:sign0161:
  5. specci48

    specci48 Well-Known Member Licensed User

    It is
    - stop typing with your right (or left ;)) hand
    - moving your hand to the mouse
    - stop typing with the other hand, because moving one hand to the mouse and typing with the other is very difficult...
    - moving the mouse to realize where the cursor remains on your monitor
    - moving the mouse to the icon
    - and now "just the click"
    - moving the hand back to the keyboard
    - start typing again

    Because of this I renew my wishlist I posted some time ago: