r5n-dev / vscode-react-javascript-snippets

Extension for React/Javascript snippets with search supporting ES7+ and babel features
MIT License
1.71k stars 440 forks source link

Auto selection of of component name after creating a function component . #250

Open aafrinabid opened 2 years ago

aafrinabid commented 2 years ago

issue This has been the issue that I have been facing for quite a while for some it may not be that much of an issue but for me personally, it's been tough cause as you can see when we try to backspace the whole code gets altered and inside the div tag there is no need of the FirstName so its actually tough every time to click the mouse if you don't want to alter anything. Step to reproduce

  1. Create a file of FirstName.js 2.Now inside that file type "rfce"
  2. Now whole function component gets created thanks to this extension but after creating the function name is selected, inside the div tag the function name is given which I personally think is unnecessary is also selected, and at exports also it is selected now usually if you have nothing to change you have to use the mouse to deselect every selected code now if you type enter all code gets altered