This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251932 - Yaml snippet insertion is not relative
Summary: Yaml snippet insertion is not relative
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: YAML (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-19 08:07 UTC by lce-fr
Modified: 2015-09-09 11:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lce-fr 2015-04-19 08:07:18 UTC
Indentation mode of yml snippet insertion is absolute instead of being relative to the place of insertion:

snippet example: 

oneToMany:
    ${field}:
        targetEntity: ${target}
        mappedBy: ${mappedBy}


if I insert this snippet in

my:
    sub:
        prop:
             [shortcut+tab]

it will output:

my:
    sub:
        prop:
            oneToMany:
    field:
        targetEntity: target
        mappedBy: mappedBy


instead of: 

my:
    sub:
        prop:
            oneToMany:
                field:
                    targetEntity: target
                    mappedBy: mappedBy

I checked it against the three "on template extension" option.

Kind regards