Is there a way to copy code in Sublime and paste in email / gmail retaining the formatting an colours like it’s possible in Visual Studio Code ? I have to open the file in VSCode just so that I can copy the content and paste it in gmail.
If you are using ST3, then https://facelessuser.github.io/ExportHtml/usage/ is an option to help you copy text as html and use it in gmail.
If you are using ST4, then it provides an option by default (
Edit -> Copy as HTML from the main menu) where by you can just select what text you want and using that option, copy it as html (it respects your color schemes, formatting & such) which can then be pasted in gmail.