Is it possible to indent by operator in a multiline statement? Follow
When I type something like:
std::cout << "ISBN: " << transaction.bookNo << std::endl
<< "Units sold: " << transaction.units_sold << std::endl
<< "Price (each): " << transaction.price << std::endl
<< "Total revenue: " << transaction.revenue << std::endl
<< std::endl;
Is it possible to indent and align each line to << operator automatically? So I'd get this:
std::cout << "ISBN: " << transaction.bookNo << std::endl
<< "Units sold: " << transaction.units_sold << std::endl
<< "Price (each): " << transaction.price << std::endl
<< "Total revenue: " << transaction.revenue << std::endl
<< std::endl;
I went through Visual Studio settings and through ReSharper settings and couldn't find a setting for this.
Please sign in to leave a comment.
Hello,
There seems to be no option in R++ for this at the moment, I've filed a feature request - https://youtrack.jetbrains.com/issue/RSCPP-26512.
Thanks for the suggestion!