문제

I've come acrossed something annoying about indentation in C++ (using Visual Studio 2010 and Visual Assist X).

The thing is that every time I want to start a new line after keying in ctrl+enter and ctrl+shift+enter, the cursor begins at the very beginning of a new line. This fact annoys me a lot when using the hotkeys inside any braces. For example,

for (int i = 0; i < n; i ++) {
    std::cout << "say something" /* press `ctrl+shift+enter` here*/ << std::endl;
!   |<--
}

After pressing the hotkey (somewhere not at the end of the line, e.g., at the comment /*...*/ above), the cursor will be at the starting position (see ! in the above code). What I want is to automatically put the cursor in the new line with the same indentation of the previous line (see |<--).

How can I make this happen? Many thanks.

도움이 되었습니까?

해결책

Here is an answer from Whole Tomato Software Support Forum

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top