parallaxinc / Propeller-Tool

Propeller Tool software for Windows
MIT License
9 stars 2 forks source link

Add Line/Block Commenting with Shortcut #27

Open JonMcPhalen opened 4 years ago

JonMcPhalen commented 4 years ago

Would like to have Edit/Toggle Comment to affect current cursor line, or all lines of a selection. The feature would scan each line and if the first non-whitespace character is an apostrophe, it would be deleted (uncomment), otherwise an apostrophe would be inserted at column 1 of the line.

Shortcut: Ctrl + '

PropGit commented 4 years ago

This seems quite possible. Will consider more. May need to verify parsed source to properly handle cases where the line/selection includes portions of multi-line doc comments; however, that may not really be a problem.