TSTool 14.6.0 introduces indentation, in particular to use with If and For commands. Indentation is automatic except for # comments. One issue is that the comment editor removes # before editing and then adds them before the command is added to the the commands. This helps users because they don't need to insert # in front of multiple lines.
However, with the implementation of indentation, it becomes confusing for code and users as to where the indentation spaces exist and where the # character is. For other commands, the editor strips the indent at the bottom of the editor because it does not matter. Should the same thing be done for # comments?
This is also complicated by the feature that turns commands into comments and removes comments. For example if an indented command is turned into a comment, the # should probably also be indented.
Additional evaluation needs to occur as to how to handle # comments with indentation. Note that if # comments are indented using the right-click popup menu, the indentation is retained. It is mainly the behavior of the comment editor that needs to be evaluated.
Subject of the issue
TSTool 14.6.0 introduces indentation, in particular to use with
If
andFor
commands. Indentation is automatic except for#
comments. One issue is that the comment editor removes#
before editing and then adds them before the command is added to the the commands. This helps users because they don't need to insert#
in front of multiple lines.However, with the implementation of indentation, it becomes confusing for code and users as to where the indentation spaces exist and where the
#
character is. For other commands, the editor strips the indent at the bottom of the editor because it does not matter. Should the same thing be done for#
comments?This is also complicated by the feature that turns commands into comments and removes comments. For example if an indented command is turned into a comment, the
#
should probably also be indented.Additional evaluation needs to occur as to how to handle
#
comments with indentation. Note that if#
comments are indented using the right-click popup menu, the indentation is retained. It is mainly the behavior of the comment editor that needs to be evaluated.Environment