Vscode python3 Task.json Configuration

Source: Internet
Author: User

Always use sublime, but Ubuntu input Chinese have problems, solve it too troublesome;

The pycharm is too heavy. Virtual Machine opened +chrome Open 10 of several pages, and then run pycharm, mute thin notebook CPU and 8G memory basically full, fan turn, high-frequency noise from the side of the small, noisy ear pain.

It's hard to endure after a quiet night's work.

Also more and more unaccustomed to the heavy-duty IDE, Python is for light and flexible, code and tools, the more concise the better.

Pycharm more and more visualstudio style ...

Comparison trial (toss) a few days, in contrast, incredibly is m$ home Vscode is right!

Support for Git and Docker is also very comfortable. Theme cut into Monokai and then set the keyboard sublime scheme, very perfect, and incredibly do not have to crack-_-!

Run angular without any problems.

The only trouble is running Python.

From Ctrl+b, into Ctrl+shift+b. And it doesn't work at first!

First in the configuration file, set the path of Python.pythonpath with python3.5, otherwise the default is Python2

The F5 can then be debugged and run. But ctrl+shift+b not yet.

Vscode the folder containing the. Vscode folder (git-like folder) as a project. It must be such a project to support ctrl+shift+b such a build task.

You need to run the Ctrl+shift+b one time, and then the. Vscode folder appears under a Task.json. Used to define how to generate and what generation instructions (like Ng serve ng start in angular)

This document also has to revise itself, Chinese blog More is 1.0.0 version of, now 2.0.0, not to do.

Find a half-day, or big can stack overflow, tiger, change to the following so OK (I am ubuntu16.04 python3.5 if installed 3.6 don't forget to change):

{    //See https://go.microsoft.com/fwlink/?LinkId=733558    //For the documentation about the Tasks.json format"Version": "2.0.0",    "Tasks": [        {            "TaskName": "Run py3 File",            "command": "/usr/bin/python3.5 ${file}", "Type": "Shell",            "Group": {                "Kind": "Build",                "IsDefault":true            },            "Presentation": {                "Reveal": "Always",                "Panel": "New",                "Focus":true            }        },        {            "TaskName": "Nosetest",            "Command": "Nosetests-v",            "Type": "Shell",            "Group": {                "Kind": "Test",                "IsDefault":true            },            "Presentation": {                "Reveal": "Always",                "Panel": "New",                "Focus":true            }        }    ]}

In short, support for Python is slightly less than sublime Text3. It's good that the work will be done automatically.

But a little bit of trouble with it. See for free, endure.

Vscode python3 Task.json Configuration

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.