简体   繁体   中英

Function list in Sublime Text 3

Please help me with this issue. How can I display a list of functions like. these ones: 截屏 When I press tab or ctrl + space I only get a list with words which I've used in the file but not list with functions. I use Python syntax

Will be very thankful for your answers!

Use Sublime Package Control to install a python auto completion package like python completions.

https://packagecontrol.io/packages/Python%20Completions

In sublime text,

  1. Preferences -> Package Control
  2. Select install package from the popup menu
  3. Search for Python Completion
  4. Click on it
  5. After installation just change the syntax to python from view menu

Edit: If you don't see the package control option in Preferences menu, go to tools and select install package control.

You can use the Anaconda plugin that comes also with other perks.

Important to have also the follow configs yo have it working:

  1. Packages/User/Preferences.sublime-settings
    "auto_complete": true,
    "auto_complete_commit_on_tab": false,
    "show_definitions": true,
    "tab_completion": false,
  1. Packages/User/Python.sublime-settings
    "auto_complete_triggers": [{"selector": "source.python - string - comment - constant.numer

install jedi python autocompletion from the package installer, this will put most function options to choose from, such as the random module with the random function, this will show you all the options once you type a. after the function

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM