1 line
959 B
Plaintext
1 line
959 B
Plaintext
<!-- SC_OFF --><div class="md"><p>Hello, I have a snippet set like so:</p> <pre><code>import React from 'react' const ${1:Component} = ( ${2:$$(yas-choose-value '("\{ \}" "props"))} ) => { return ( $0 ) } export default $1 </code></pre> <p>I have two questions:</p> <ul> <li>How do I have the cursor at $2 be between the <code>{ }</code>?</li> <li><code>yas-choose-value</code> prompts to choose a value but I can't use <code>Tab</code> to choose the second value. If I do, it disappears. I have to use the arrow key</li> </ul> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/dash_o_truth"> /u/dash_o_truth </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rcyyii/yasnippets_how_do_i_move_the_cursor_back_after/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/rcyyii/yasnippets_how_do_i_move_the_cursor_back_after/">[comments]</a></span> |