Not signed in (Sign In)

Categories

Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorSmasher
    • CommentTimeAug 9th 2007
     permalink

    I have the following snippet for C# bundle:

    { content: '${1:public} ${2:void} ${3:MethodName} (${4:${5:int} ${6:value}}) { ${0:// code...} }' title: 'method ..' scope: 'source.csharp' tab_trigger: 'method' }

    So I press Tab six times and at next time i expect that Intype will select “// code…”, but cursor appears in the end of “// code…”

    •  
      CommentAuthortstrokes
    • CommentTimeAug 10th 2007
     permalink

    Did you just want to select “// code”?

    •  
      CommentAuthorSmasher
    • CommentTimeAug 10th 2007
     permalink

    Yes. I know I just can change 0 to 7, but there are other snippets where is used 0 tab-index for selecting text. For example php_class.itSnippet.

    •  
      CommentAuthortstrokes
    • CommentTimeAug 10th 2007
     permalink

    Right. Added to my list as possible bug.

  1.  permalink

    $0 is intended only for setting the caret position. This where we might be incompatible with TM’s format. It’s better to change it to $7.