Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

indenting code issue

jimdempseyatthecove
Honored Contributor III
183 Views
low priority issue with VS and indentation. Assume I have:

if(expression) then
statement
end if

Assume then I place the insertion cursor at the end of "statement"
Press enter, then enter

if(expression) then
statement
do i=1,3
statement (auto indent here - ok)
end do (then on enter, I observe)
(note additional open line)
end if

I would prefer that the additional open line not be present. IOW if I want an additional open line, I enter the open line. Hitting Backspace is not a good solution since I must hit back space once for every tab indent or take a hand off the keyboard to us the mouse to select the line to remove. I would prefer to enter 1 additional enter (finger on key already) when I want an additional empty line, as opposed to several backspaces or hand to mouse, find line, select line, hit delete, hand back to keyboard. One stroke infrequently vs many strokes most of the time.

Jim Dempsey
0 Kudos
1 Reply
Les_Neilson
Valued Contributor II
183 Views
Withthe cursoron the open line,Ctrl-X will delete the line.
Les
0 Kudos
Reply