React support for useCodeSnippetsOnMethodSuggest #48562
Labels
feature-request
Request for new features or functionality
javascript
JavaScript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
upstream-issue-linked
This is an upstream issue that has been reported upstream
I would like to propose support for the "useCodeSnippetsOnMethodSuggest" capability with React components. Given a TS definition like this
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 valueExample:
$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
What are your thoughts?
The text was updated successfully, but these errors were encountered: