상세 컨텐츠

본문 제목

2. vs code에 python 적용

파이썬 기초

by js-delog77 2023. 5. 5. 18:03

본문

extentions에 들어가서 python 검색 후 다운로
view - command Palette 클릭
python:select interpreter 클릭
설치한 경로가 나온 python 클릭
others 클릭

 

json 파일 내용 지우고 아래 내용 입력 

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Project Label",
            "type": "shell",
            "command": "python",
            "args": [
                "${file}"
            ],
            "presentation": {
                "reveal": "always",
                "panel": "new"
            },
            "options": {
                "env": {
                    "PYTHONIOENCODING": "UTF-8"
                }
            },
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

 

'파이썬 기초' 카테고리의 다른 글

4-2. 가상환경 구성하기2  (0) 2023.05.06
4. 가상환경 구성하기  (0) 2023.05.06
인코딩  (0) 2023.05.06
3. print 함수  (0) 2023.05.06
1. 파이썬 개발환경 설정(+ vscode 다운 받아놓기)  (0) 2023.05.05

관련글 더보기