S
S
sinevik2020-07-15 22:58:54
webstorm
sinevik, 2020-07-15 22:58:54

A variable between $START$ and $END$ to move the cursor in liveTemplate?

const example = ($START$) => {
  let result;
  switch ($CARET$) {
    case '':
      result = $CARET$;
      break;
    case '':
      result = $CARET$;
      break;
    case '':
      result = $CARET$;
      break;
    case '':
      result = $CARET$;
      break;
    default:
      result = $END$
  }
  return result
}


Please tell me a variable that will allow you to switch the cursor to the right place in the snippet

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WapSter, 2020-07-15
@sinevik

$VAR1$ $VAR2$ etc. Only I do not know how they make friends with your start and end, if the carriage jumps for other purposes, replace them with $VAR1$ and $VAR{last}$

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question