How to I indent extern block?

Answered
class Foo {
public:
void func() {
std::cout << "Test Function\n";
}
};

extern "C" {
Foo* Foo_new() {
return new Foo();
}
}

 

If I do 'Reformat code', indentation inside of extern block is always removed.

How to I apply indent to extern blocks?

0
4 comments

Hello! Could you please provide more details? What is the result of 'Reformat code'? On my side nothing happens with the extern block.

0
Avatar
Permanently deleted user

If I reformat my code, all indentation in extern block is removed. I'm expecting this result after reformatting code:

 

extern "C" {

    Foo* Foo_new() {

        return new Foo();

    }

}

 

0
Avatar
Permanently deleted user

Thanks. I've upvoted the issue.

0

Please sign in to leave a comment.