Sublime like includ shortcode


Hi, I wonder if there’s an equivalent of Sublime Text to include parts of code in tags. I mean, in ST3 you can select a part of code, hit ctrl opt enter and type p or h4 or .nav or whatever to this code to be include between those tags.