OK, let me exemplify, the example is pretty daft code-wise but shows the unwanted indentation:
I have a section of code looking like this:
begin
Result := false;
try
sCmdDir := ReadIniString('configuration', 'cmddir', '/monitorctrl/cmd', sCnfFile);
FL.Clear;
if DirectoryExists(sCmdDir) then
begin
//Now list the files in the cmd dir with extension .cmd
slCmdFiles := TStringList.Create;
Now I want to paste a line containing a debug variable (deb_pos := 3;) into the code further down, so I select the line and Ctrl-C then place the cursor at the left margin of where I want to insert the line and Ctrl-V to paste it. I want it to be in the left margin so it easier to see when it is finally going to be removed...
But now the result looks like this:
begin
Result := false;
try
sCmdDir := ReadIniString('configuration', 'cmddir', '/monitorctrl/cmd', sCnfFile);
FL.Clear;
if DirectoryExists(sCmdDir) then
begin
//Now list the files in the cmd dir with extension .cmd
deb_pos := 3;
slCmdFiles := TStringList.Create;
It should have looked like this:
begin
Result := false;
try
sCmdDir := ReadIniString('configuration', 'cmddir', '/monitorctrl/cmd', sCnfFile);
FL.Clear;
if DirectoryExists(sCmdDir) then
begin
//Now list the files in the cmd dir with extension .cmd
deb_pos := 3;
slCmdFiles := TStringList.Create;
In other cases with more complex statements and where I want to add something non-indented it is pushed right a long way.
And when I want to back it out using backspace key it just moves one position at a time rather than moving left by a tab size or even to the start position of the previous line...
In Delphi this worked a lot more "naturally".
I assume there is a CodeTools setting I have missed like how to set the Ctrl-Click move to the implementation if one does it on a function name (which I finally found after googling)...