My favorites | Sign in
Project Logo
                
Search
for
Updated Nov 29, 2007 by pluskid
Labels: Featured, Phase-Deploy
TipForSkipFieldWithSameName  
Tip for skipping the next field with the same name as current field.

Introduction

What do you really want to do when you press TAB in a snippet? Go to next field. What do you really want to do when you go to next field. Edit that field. So you won't want to go to the next field if it has the same name with the current one because you won't want to edit it. Why? That's because you can edit it remotely just in current field -- they have the same name, they will be updated automatically. That's why I introduce this feature.

Details

A simple example for LaTeX, consider the following snippet template:

\begin{$${env}}
$.
\end{$${env}}

After editing the first env field, I bet you want to go to $. instead of the next env field. If that is what you want, turn on the variable snippet-skip-same-field. BTW, this variable is buffer-local.


Sign in to add a comment
Hosted by Google Code