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?
Please sign in to leave a comment.
Hello! Could you please provide more details? What is the result of 'Reformat code'? On my side nothing happens with the extern block.
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();
}
}
Feel free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-3767 in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Thanks. I've upvoted the issue.