Ctrl+P
Convert old-fasioned functions with prototype to a modern class.
Select the funtions and prototype methods, nothing more. Press [Ctrl + Shift + P], Type javascript prototype to class Then the code is converted to modern class.
javascript prototype to class
https://github.com/EricWebsmith/prototype_to_class