Skip to content

Commit

Permalink
update LAMMPS-GUI docs for changing the default of "Reformat on 'Enter'"
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Aug 3, 2024
1 parent 9502371 commit 7c9703b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions doc/src/Howto_lammps_gui.rst
Original file line number Diff line number Diff line change
@@ -471,11 +471,12 @@ Line Reformatting
The editor supports reformatting lines according to the syntax in order
to have consistently aligned lines. This primarily means adding
whitespace padding to commands, type specifiers, IDs and names. This
reformatting is performed by default when hitting the 'Enter' key to
start a new line. This feature can be turned on or off in the
``Preferences`` dialog, but it can still be manually performed by
hitting the 'TAB' key. The amount of padding can be adjusted in the
``Preferences`` dialog for the *Editor*.
reformatting is performed manually by hitting the 'Tab' key. It is
also possible to have this done automatically when hitting the 'Enter'
key to start a new line. This feature can be turned on or off in the
``Preferences`` dialog for ``Editor Settings`` with the
"Reformat with 'Enter'" checkbox. The amount of padding for multiple
categories can be adjusted in the same dialog.

Internally this functionality is achieved by splitting the line into
"words" and then putting it back together with padding added where the

0 comments on commit 7c9703b

Please sign in to comment.