Detailed operation on the PyDev roaming option window in Python development in Eclipse

Source: Internet
Author: User

If you do not know much about the actual operations in the PyDev roaming option window of Python development in Eclipse, you can click the following article to view it and. the PyDev option window describes how to set the Python interpreter and other related content.

Use Window> Preferences and select PyDev to access the PyDev option. The first option can change the way PyDev processes tabs in the source code and the color of the syntax element.

1. PyDev option window

Set the Python Interpreter

You can select the Python interpreter for the PyDev Debug option to run Python code. If PyDev cannot find the Python interpreter or you want to use another interpreter, set it here ).

  • Python unicode ascii encoding in windows
  • The actual operations of the macro programming language in the Python Function
  • Introduction to four common tools in Python
  • Simulate JavaScript encryption requirements for websites using Python
  • How to Develop Python labels in Eclipse

2. PyDev Debug options

Process source code

Most of my Python work is done from the Resource perspective. The usage is to switch to the Resource perspective first, and then the dual feedParserTest/src/feedparserTest/FeedparserTest. py file in the Navigator view in the upper left corner. Open the file in the Python Editor, parse the Python syntax, and complete the settings of color and syntax check.

3. Python Editor

If any error occurs in the source code, it is displayed in the Tasks view in the lower right corner. Double-click an error in the Tasks view to find the annoying code line.
The Outline view is in the lower left corner. An easy-to-browse structure is used to display the file being edited. The imported libraries, classes, and functions are all displayed. by double-clicking the project in the Outline view, you can navigate to the project. Edit PyDev

The Python file is aligned for pre-resolution, the Outline view is updated, the syntax check is executed, and the syntax elements are displayed in different colors.

Editor features

In the Python source code editor, PyDev 0.4 adds the hyperlink feature to functions and import/export libraries. If you press the Control key while skipping an import or function call that must be in the PYTHONPATH directory, PyDev will display a hyperlink, in this way, you can navigate between the import library or function source code.

Note that to use this feature across modules in your own source code to link from one module to another), you must modify the PYTHONPATH environment variable and add these modules to it, in this way, PyDev can find them.
People have begun to add some excellent source code editing features to the latest version of PyDev, including code block comments and uncomments, and code left and right shift.

4. Other features of the PyDev Editor

Run the Python script

If Code cannot be executed, IDE is not very useful. To execute the Python code, you can select the feedparser. py file from the Navigator view, right-click it, and choose Python> Run. The STARTUP configuration window of Python is displayed.
Introduction to the Python roaming option window in Eclipse development.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.