You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
React support for useCodeSnippetsOnMethodSuggest #48562
I would like to be able to import Label into another component, type <Label and press TAB, like you can for regular JS functions, and have it enter a snippet with all required props (i.e. not optional) prefilled and tab stops for each value
Example:
<Labeltext="$1" isDisabled={$2}$0/>
$1 - first tab stop. Surrounded by quotes because it is a string
$2 - second tab stop. Surrounded by braces because it is a function
$0 - final stop, for entering optional parameters
This would be really amazing to have! It was the best part about Webstorm, but I vastly prefer using VS Code (it's so much faster!). Matt Bierner (@mjbvz) Is there any ETA on this feature? 🙏
Activity
mjbvz commentedon Jun 25, 2018
I like the idea. Requires some upstream work though: microsoft/TypeScript#25207
chadgarlandscg commentedon Aug 4, 2018
This would be really amazing to have! It was the best part about Webstorm, but I vastly prefer using VS Code (it's so much faster!). Matt Bierner (@mjbvz) Is there any ETA on this feature? 🙏
mjbvz commentedon Oct 3, 2020
Closing this in favor of the upstream issue: microsoft/TypeScript#25207
We will continue discussion there