PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Mass comment out and uncomment in IT editor  (Read 1565 times)

thenewguy

  • Member
  • **
  • Posts: 15
    • View Profile
Mass comment out and uncomment in IT editor
« on: September 21, 2022, 04:26:17 PM »
Hi all,
It'd be neat to be able to highlight a bunch of lines and do some sort of keyboard command that would comment or uncomment those lines. This is very helpful in debugging massive programs and is a standard in most IDE's.

Thanks! :)

Devon Austen

  • Administrator
  • Diamond Member
  • *****
  • Posts: 382
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: Mass comment out and uncomment in IT editor
« Reply #1 on: September 22, 2022, 08:08:08 AM »
You can do this with the ED+ editor using the CTRL + / keyboard shortcut.

ED+ is built using the open source Ace Editor so most of the keyboard shortcuts listed here work: https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts

Principal Software Engineer for PVX Plus Technologies LTD.

thenewguy

  • Member
  • **
  • Posts: 15
    • View Profile
Re: Mass comment out and uncomment in IT editor
« Reply #2 on: September 22, 2022, 08:27:14 AM »
Good to know! I'm just reading about the ED+ editor right now.

Is one better/newer than the other, or are they just different ways of accomplishing the same task and I should use the one I'm most comfortable with?

Devon Austen

  • Administrator
  • Diamond Member
  • *****
  • Posts: 382
  • Don’t Panic
    • View Profile
    • PVX Plus Technologies
Re: Mass comment out and uncomment in IT editor
« Reply #3 on: September 22, 2022, 08:43:29 AM »
IT and ED+ are both good choices. ED+ is newer and was developed to provide a way that would work on the web and not just with Windows.

They both accomplish the same task and you can use the one that you are most comfortable with and you find the most useful.

You can also use both to edit the same file if you find there is a feature in one but not the other. Just use ED+ for the comment feature and do the rest of the editing in IT for example.
Principal Software Engineer for PVX Plus Technologies LTD.

thenewguy

  • Member
  • **
  • Posts: 15
    • View Profile
Re: Mass comment out and uncomment in IT editor
« Reply #4 on: September 22, 2022, 08:45:58 AM »
Thanks for the additional info!

(Can I still add this to the wishlist for the IT editor?  :D )