Skip to content

Does nppsnippets respect TABed cursor position #59

Open
@BW2001

Description

@BW2001

Hello

I have a lot of TABed code and find that the plugin doesn’t respect the initial cursor TABed (or multiple space indent) position for the inserted snippet code -see below. Is there anything I can do to fix this anomaly.

Before cursor

<empty line>
Nameobject(folderName);
BeginFolderN(kSYMBOLDEFS); {kSYMBOLDEFS = 16;}
<empty line>

After cursor

<empty line>
EndFolder;

Some example code

                SetSelect(objH);
                <-cursor
  end;

If I add snippet at cursor position above, I get the following

                SetSelect(objH);
                
Nameobject(folderName);
BeginFolderN(kSYMBOLDEFS); {kSYMBOLDEFS = 16;}
<-cursor                 
                  EndFolder;
  end;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions