Liste des Groupes | Revenir à l misc |
On Tue, 27 Aug 2024 21:34:54 -0000 (UTC)I don't know about Emacs, but in most editors the way you indent a block of code is to select the lines, then press "Tab". Unindenting is "shift-Tab". Changing tabs to spaces or spaces to tabs is done by selecting "Tabs to spaces" from the Edit menu, or something equally simple and obvious. Many editor can be set to convert tabs to spaces (or vice versa) when saving files, perhaps specific to the file type (so you don't muck up your makefiles).
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:On Tue, 27 Aug 2024 11:26:18 +0100, Bart wrote:Writing editor editor macros in order to work around fundamentally bad
>(2) You want to temporarily comment out an 'if' line so that the>
following block is unconditional. You can't do that with also
unindenting the block.
In Emacs, I have commands defined to adjust the indentation of the
selected region. Surely any other decent editor would offer the same.
language design is not something a programmer should have to waste time on.
Les messages affichés proviennent d'usenet.