Sublime Forum

Shortcut for Python

#1

Nothing much just a small question, u know one of those shortcuts were u type a letter or few and hit tab and it automatically completes it
I wanted to know the one for print() in python pls lemme know

And ya also mention other useful shortcuts that you think I’ll be using frequently as I am a newbie in Python

0 Likes

#2

Try this. Go via menu Tools > Developer > New Snippet. Replace with this and then save the file. It’ll trigger after typing in pr and tab but you can change that by changing the tabTrigger part to whatever you want.

<snippet>
    <content><![CDATA[
print(${0})]]></content>
    <tabTrigger>pr</tabTrigger>
    <scope>source.python</scope>
</snippet>
0 Likes