summaryrefslogtreecommitdiff
path: root/editor/editor_plugin_settings.cpp
diff options
context:
space:
mode:
authorPaulo Gomes <tuga3d@gmail.com>2017-08-31 18:20:18 +0100
committerPaulo Gomes <tuga3d@gmail.com>2017-09-05 00:04:08 +0100
commitaf40c8698b6f13d351c3b996fb1b51db990e06e9 (patch)
treed7803ca15b0f2ed32aa9c3bf1493fb8a7763a654 /editor/editor_plugin_settings.cpp
parent53e7f55a898efd1c1a3b424c3bce81c1240a9ca6 (diff)
Smarter toggle comment block. issue #10720
Added check to see if all lines in selection are commented (is_commented) If so remove the comment from each line else add a comment. If the line is empty, with trailing spaces or tabs, remove those. This will add an extra comment character to the lines that are already commented, so when you uncomment a block it retains the previous commented lines. Following Zylann logic, if the selected lines are all commented out, it removes one # from each. Otherwise, it adds one. It works how it is, but i would like some feedback on how to implement this.
Diffstat (limited to 'editor/editor_plugin_settings.cpp')
0 files changed, 0 insertions, 0 deletions