bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body


From: Dmitry Gutov
Subject: bug#61997: 30.0.50; c++-ts-mode; cannot indent in an empty function body
Date: Mon, 6 Mar 2023 15:11:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 06/03/2023 14:57, Eli Zaretskii wrote:
Date: Mon, 06 Mar 2023 11:03:51 +0800
From: xhcoding<xhcoding@foxmail.com>


When the cursor is at the position of the following code,
pressing tab cannot indent to the correct position.

int add() {
|  <-- pressing tab can not indent
}

The expected position after pressing the tab:

int add() {
   |
}
I think you are supposed to switch the indentation style to bsd, and
then it will work.  The default is gnu.

Using the gnu style, most of the expressions that the user will type will indent with OFFET number of characters, right?

Then it makes sense to indent the open line like that, too.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]