Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of automatic completion of python prompt by SublimeText3

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the method of SublimeText3 automatic completion of python tips, I hope you will gain something after reading this article, let's discuss it together!

1. Download address of Sublime Text3

Https://www.sublimetext.com/3

2. Install SublimeText3

3. Install SublimeCodeIntel

(1) Open SublimeText3; (2) press the shortcut key "ctrl+p", or "Preferences- > Package control" enter "Package Control: InstallPackage"; (3) enter "SublimeCodeIntel", click on the "SublimeCodeIntel" package in the list, and there will be a corresponding prompt after installation.

4. Configure python prompts

(1) find the configuration file

Preferences- > Package settings- > SublimeCodeIntel- > settings-user

(2) the contents of the modified file are as follows, in which the path of python needs to be modified according to your own needs.

{"codeintel_language_settings": {"Python": {"python": "D:\\ python\\ python.exe", "codeintel_scan_extra_dir": ["D:\ python", "D:\\ python\\ DLLs", "D:\\ python\\ Lib" "D:\\ python\\ Lib\\ site-packages", "D:\ python\\ Lib\\ idlelib"], "codeintel_scan_files_in_project": true, "codeintel_selected_catalogs": []},}}

5. Shortcut keys

(1) in general, the default shortcut keys are:

Ctrl+/: code comments

Ctrl+shift+space: code hint

(2) Custom shortcuts:

Customize the Mouse Jump comment Code

Find a configuration file

Preferences- > Package settings- > SublimeCodeIntel- > Mouse Bindings-User

Add the following

[{"button": "button1", "modifiers": ["ctrl"], "command": "goto_python_definition", "press_command": "drag_select"}] Custom keyboard shortcuts Preferences- > Package settings- > SublimeCodeIntel- > Key Bindings-User

It is defined in a format similar to that of the mouse.

The above customization methods can be found in

After reading this article in Preferences- > Package settings- > SublimeCodeIntel- > Key Bindings-Default, I believe you have a certain understanding of "SublimeText3 automatic completion of python prompts". If you want to know more about it, welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report