compare.ignoreTrailingBlanks parameter
Use the compare.ignoreTrailingBlanks parameter to set or query whether differences in white space at the end of a line are significant when comparing files with the compare command.
Availability
query command
set command
Scope
compare.ignoreTrailingBlanks is scoped to the current view.
current.compare.ignoreTrailingBlanks is scoped to the current view.
default.compare.ignoreTrailingBlanks is globally scoped.
install.compare.ignoreTrailingBlanks is globally scoped.
Syntax
query compare.ignoreTrailingBlanks set compare.ignoreTrailingBlanks [default | on | off] query current.compare.ignoreTrailingBlanks query default.compare.ignoreTrailingBlanks set default.compare.ignoreTrailingBlanks [install | on | off] query install.compare.ignoreTrailingBlanks
Parameters
default If you specify the default parameter for the set compare.ignoreTrailingBlanks command, the current view will use the value of default.compare.ignoreTrailingBlanks to determine if the compare command should ignore white space at the end of the line. on If you specify the on parameter for the set compare.ignoreTrailingBlanks command, the compare command will ignore the presence of white space at the end of the line for the comparison in the current view. If you specify the on parameter for the set default.compare.ignoreTrailingBlanks command, the compare command will ignore the presence of white space at the end of the line for comparisons in any of the document views that have compare.ignoreTrailingBlanks set to default. off If you specify the off parameter for the set compare.ignoreTrailingBlanks command, the compare command will not ignore the presence of white space at the end of the line for the comparison in the current view. If you specify the off parameter for the set default.compare.ignoreTrailingBlanks command, the compare command will not ignore the presence of white space at the end of the line for comparisons in any of the document views that have compare.ignoreTrailingBlanks set to default. install If you specify the install parameter for the set default.compare.ignoreTrailingBlanks command, all of the document views that have compare.ignoreTrailingBlanks set to default will use the value of install.compare.ignoreTrailingBlanks to determine whether the compare command should ignore the presence of white space at the end of the line.
Description
The query compare.ignoreTrailingBlanks command returns the trailing blank comparison setting that will be used by the compare command.
If you do not specify any of the parameters for the set compare.ignoreTrailingBlanks command, default is assumed. If you do not specify any of the parameters for the set default.compare.ignoreTrailingBlanks command, install is assumed.
The query current.compare.ignoreTrailingBlanks command returns on if, for the current view, the compare command will ignore white space at the end of the line, and off if, for the current view, the compare command will not ignore white space at the end of the line.
Examples
query compare.ignoreTrailingBlanks set compare.ignoreTrailingBlanks on query current.compare.ignoreTrailingBlanks query default.compare.ignoreTrailingBlanks set default.compare.ignoreTrailingBlanks off query install.compare.ignoreTrailingBlanks
compare command
query command
set command
compare.columns parameter
compare.endColumn parameter
compare.ignoreAllBlanks parameter
compare.ignoreCase parameter
compare.ignoreComments parameter
compare.ignoreLeadingBlanks parameter
compare.ignoreSequenceNumbers parameter
compare.startColumn parameter
current parameter
default parameter
install parameter