Sublime Text in use SUBLIMEREPL plugin & problems encountered

Source: Internet
Author: User

Recently began to deep into the study of py, the native IDE is very practical, but the coding feel oneself back to the last century 90 's ....

Many web-based solutions to build PY IDE, I chose the sublime to build, because small, easy to edit, beautiful.

Build sublime text on the PY environment on the internet has a lot of tutorials, almost all used to sublimerepl this plugin

After installation also need to set the shortcut keys, on the internet to find such a piece of code:

[ {          "keys": ["Ctrl+b"],                "com Mand ": Repl_open",                  "caption": "Python",                  "id": "Repl_python",                  "Mnemonic": "P",                  "args": {                    "type": "Subprocess",                  &NB Sp "Encoding": "UTF8",                    "cmd": ["Python", "-I", "-U", "$f Ile "],                   " CWD ":" $file _path ",      &NBSP ;             "syntax": "Packages/python/python.tmlanguage",        &NBSP ;     &NBSp     "external_id": "Python"                    } }]  Here the head not only set the shortcut keys, but also set some other things   some netizens follow this setup, compile will report this error: Can ' t open file ' $file ': [Errno 2] No such file or directory file does not exist?? I also reported this mistake when I first started using it.   later found that it was himself before writing the Py code, in the sublime to create a new text to edit, has not been saved to press CTRL + B to compile, no wonder that the file does not exist. You should press CTRL + S to enter a file name in the dialog box and then press CTRL + B after saving the specified directory to compile successfully!   In addition, when debugging a simple control of a desktop program, you should add a = input () at the end of the code, otherwise the Output window will not show anything.  

Sublime Text using SUBLIMEREPL plug-ins & problems encountered

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.