JetBrains setting for commenting block of code with indent

62 Views Asked by At

I have a problem with my JetBrains product which is not correctly comment block of code with Ctrl + Shift + /.

When I use this to comment my code it will add /* and */ in first column instead of my code indent so then after using reformatting my code these /* and */ will came to indent place of my code and my code which is commented now will more indent.

Sorry for my bad Description. I will show you an example.

        code
        to
        be
        comment

after commenting

/*
        code
        to
        be
        comment
*/

after refactor code

        /*
                    code
                    to
                    be
                    comment
        */
0

There are 0 best solutions below