ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Kite Python Autocomplete

by kiteco ST3

Kite Autocomplete Plugin for Sublime Text: Featuring AI-powered autocompletions, advanced function signatures, and instant documentation

Details

  • 0.7.3
  • github.​com
  • 2 months ago
  • 2 hours ago
  • 8 months ago

Installs

  • Total 9K
  • Win 6K
  • Mac 1K
  • Linux 2K
Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5
Windows 7 32 18 40 29 40 30 32 27 23 29 60 29 22 27 32 23 33 37 35 28 22 29 22 32 37 29 31 34 26 30 24 34 30 29 41 35 16 40 28 43 30 37 40 31 19
Mac 0 8 3 3 3 7 6 6 0 9 5 8 7 7 3 6 7 10 12 5 6 7 4 7 4 6 3 2 7 11 6 4 6 3 3 8 8 4 11 6 8 3 9 6 6 3
Linux 1 11 9 11 7 7 11 9 3 4 8 5 4 10 16 3 9 7 13 5 7 12 10 8 4 7 17 9 7 4 2 10 6 9 5 7 5 8 10 2 8 6 8 10 16 6

Readme

Source
raw.​githubusercontent.​com

Kite Autocomplete Plugin for Sublime Text 3

Report an issue

Kite is an AI-powered programming assistant that helps you write Python & JavaScript code inside Sublime Text 3. Kite helps you write code faster by saving you keystrokes and showing you the right information at the right time. Learn more about how Kite saves you time and effort in Sublime Text at https://kite.com/integrations/sublime-text/.

At a high level, Kite provides you with: * 🧠 Line-of-Code Completions powered by machine learning models trained on the entire open source code universe * 🔍 Instant documentation for the symbol underneath your cursor so you save time searching for Python docs

Requirements

  • macOS 10.10+ or Windows 7+ or Linux (Ubuntu, Debian, Fedora, Arch Linux, Linux Mint, openSUSE, KDE, XFCE, Gnome 2, Gnome 3)
  • Sublime Text build 3000+
  • Kite Engine

Use another editor? Check out Kite’s other editor integrations.

Installation

Installing the Kite Engine

The Kite Engine needs to be installed in order for the package to work properly. The package itself provides the frontend that interfaces with the Kite Engine, which performs all the code analysis and machine learning 100% locally on your computer (no code is sent to a cloud server).

macOS Instructions 1. Download the installer and open the downloaded .dmg file. 2. Drag the Kite icon into the Applications folder. 3. Run Kite.app to start the Kite Engine.

Windows Instructions 1. Download the installer and run the downloaded .exe file. 2. The installer should run the Kite Engine automatically after installation is complete.

Linux Instructions 1. View our instructions for installing Kite. 2. The installer should run the Kite Engine automatically after installation is complete.

Installing the Kite Plugin for Sublime

When running the Kite Engine for the first time, you'll be guided through a setup process which will allow you to install the Sublime package. You can also install or uninstall the Sublime package at any time using the Kite Engine's plugin manager.

Alternatively, you can git clone this repository directly into your Sublime Packages directory. You can locate your Packages directory by opening Sublime, clicking on the Preferences menu item, then selecting Browse Packages....

Learn more about why Kite's autocomplete and docs search experience is the best available for Sublime.

Usage

The following is a brief guide to using Kite in its default configuration.

Autocompletions

Simply start typing in a saved Python or JavaScript file and Kite will automatically suggest completions for what you're typing.

Hover (Python only)

Hover your mouse cursor over a symbol to view a short summary of what the symbol represents.

If the built-in show_definition preference is enabled, Kite will show you the definitions and references found in the Sublime index as usual.

Documentation (Python only)

Click on the Docs link in the hover popup to open the documentation for the symbol inside the Copilot, Kite's desktop app for Python documentation (JavaScript documentation not yet available). The Copilot's search results also follow your cursor as you type.

Definitions (Python only)

If a Def link is available in the hover popup, clicking on it will jump to the definition of the symbol.

Function Signatures (Python only)

When you call a function in Python, Kite will show you the arguments required to call it.

Kite also shows you How others used this function, which are the most popular calling patterns inferred from all the open-source Python code on the internet.

Commands and Keyboard Shortcuts

In case you prefer to not use the mouse, most of Kite's features can be triggered from the command palette.

Furthermore, Kite comes with the following default keyboard shortcuts:

Command Shortcut Description
Hover ctrl+alt+h Show the hover popup at your current cursor position
Documentation ctrl+alt+d Show documentation in the Copilot
Function Signatures ctrl+alt+u Show the function signature panel
Keyword Arguments ctrl+alt+y Show/hide keyword arguments (when function signature panel is shown)
Popular Patterns ctrl+alt+r Show/hide popular calling patterns (when function signature panel is shown)

Configuration

You can change Kite's settings by clicking on Preferences, then Package Settings, then Kite. Alternatively, you can access the preferences files from the command palette using Kite: Package Settings. The default preferences file should be self documenting.

Known Issues

  • On Sublime 3200+, the function signature UI is truncated in some situations. (Issue)

Troubleshooting

Visit our help docs for FAQs and troubleshooting support.

Happy coding!


About Kite

Kite is built by a team in San Francisco devoted to making programming easier and more enjoyable for all. Follow Kite on Twitter and get the latest news and programming tips on the Kite Blog. Kite has been featured in Wired, VentureBeat, The Next Web, and TechCrunch.