38

Currently when I import some code, for example:

from datetime import datetime

I can't see what methods it has. How could I know that there is utcnow() for example. It would be great if there is some plugin for sublime so that I have this functionality , as it is in eclipse with cntr+space for methods. Also may be if there is some navigation between classes definitions , or going to property definition and etc.

Preferences plugins

makkasi
  • 6,328
  • 4
  • 45
  • 60
  • Have you installed any of the Python IDE plugins? Read e.g. http://stackoverflow.com/q/12656448/3001761? – jonrsharpe Feb 22 '15 at 09:31
  • I don't know really. I had followed this tutorial: https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/ and I will add image of the plugins that I have installed – makkasi Feb 22 '15 at 10:16
  • 1
    Why haven't you installed Anaconda, which that tutorial mentions? – jonrsharpe Feb 22 '15 at 10:19
  • It looks to me too big package with things that I don't need and I searched for other one. Thank you – makkasi Feb 22 '15 at 10:22

2 Answers2

44

You can have this functionality with the Anaconda Package.

enter image description here

Anaconda includes a lot more features than just auto completetion. You can install the Jedi Package. This is the auto complete that ships with Anaconda.

HoldOffHunger
  • 18,769
  • 10
  • 104
  • 133
Vader
  • 6,335
  • 8
  • 31
  • 43
  • 1
    May be dumb question but I don't see the documentation for the methods. Is there way in python to see comments for the methods in sublime – makkasi Feb 22 '15 at 10:32
  • 1
    You can do that with the Anaconda package by typing "Anaconda: Display object docs" into the *Command Palette* of Sublime. Press Enter and it'll show. – martin-martin Sep 12 '18 at 12:44
34

try SublimeJEDI

step 1: ctrl+shift+p search - install package

step 2: Wait for few seconds until drop down box to appear

step 3: search Jedi - Python autocompletion and press enter

now auto completion for python will work in sublime..

Note: you can try Anaconda instead Jedi using same step.

Mohideen bin Mohammed
  • 18,813
  • 10
  • 112
  • 118