DEV Community

Discussion on: Code Snippets - A Beginner's Guide

Collapse
 
fioribazarello profile image
Fiori Bazarello

In VS Code is also possible to configure options in positions:

${1|optionOne,optionTwo|}
Enter fullscreen mode Exit fullscreen mode

For example, to create a new React component:

class ${1:classname} extends React.${2|Component,PureComponent|} {}
Enter fullscreen mode Exit fullscreen mode
Collapse
 
matthewbrophy profile image
Matthew Brophy

Thank you for pointing that out. That is very useful!