Automatic alignment of function parameters

Is there any way to enable automatic alignment of function parameters so that cursor is in the expected location after pressing Enter?

Examples of current behavior:

And here are my settings for the alignment:

3 comments

Hello,

Your formatter settings are correct. However, R++'s typing assist is disabled within parentheses to avoid conflicts with Visual Studio's typing assist. To enable automatic alignment, please set "Tools | Options | Text Editor | C/C++ | Formatting | Indentation | Within parentheses, align new lines when I type them" to "Align contents to opening parenthesis".

Thanks!

0

Thank you for the suggestion!

But unfortunately I use MSVC 2010 with new Resharper C++ 2016.3 and there are no such options. Is it possible to enable typing assist within parentheses for R++?

0

Sorry, it's not possible at the moment. I filed https://youtrack.jetbrains.com/issue/RSCPP-18651 to add typing assist support for this case in VS2010.

Thanks for the feedback!

0

Please sign in to leave a comment.