Code Monkey home page Code Monkey logo

vscode-qt-for-python's Introduction

Visual Studio Code Extension Qt for Python

build version rating downloads installs Codacy Badge

A Visual Studio Code extension provides some common untilities for PySide6, PyQt6 and PyQt5.

Qt Markup Language (qml) Qt Style Sheets (qss) Resource Collection Files (qrc)
qml qss qrc
qmake Files (pro) Qt Linguist Translation (qt.ts) QML Module Definition Files (qmldir)
pro qtts qmldir

Highlight Features

  • Qt Markup Language (*.qml) highlighting and snippets support
  • QML Module Definition Files (*.qmldir) highlighting and snippets support
  • Qt Style Sheets (*.qss) highlighting and snippets support
  • Qt Linguist Translation (*.qt.ts) highlighting support (XML)
  • Resource Collection Files (*.qrc) highlighting support (XML)
  • Qt Designer Form (*.ui) highlighting support (XML)
  • Qt Creator User Settings (*.pro.user) highlighting support (XML)
  • qmake highlighting support
  • New or open form (Qt Designer *.ui file)
    • Automatically get designer from installed Qt for Python modules or set manually
  • Compile form (Qt Designer *.ui file) into Python file (require PySide6, PyQt6, PySide2 or PyQt5 to be installed)
    • Automatically get uic from installed Qt for Python modules or set manually
    • Automatically re-compile on form files changed
  • Update translation (Qt Linguist *.qt.ts file) from Python file (require PyQt6, PySide2 or PyQt5 to be installed)
    • Automatically get lupdate from installed Qt for Python modules or set manually
    • Automatically re-update on form files changed
  • Compile Qt Resource File (*.qrc) into Python file (require PySide6, PySide2 or PyQt5 to be installed)
    • Automatically get rcc from installed Qt for Python modules or set manually
    • Automatically re-compile on resource files changed

Supported Environment Variables

The following list shows the supported environment variables you can use for the path of Qt tools in configurations.

Predefined Variables

  • ${workspaceFolder} - the path of the folder opened in VS Code
  • ${workspaceFolderBasename} - the name of the folder opened in VS Code without any slashes (/)
  • ${file} - the current opened file
  • ${fileWorkspaceFolder} - the current opened file's workspace folder
  • ${relativeFile} - the current opened file relative to workspaceFolder
  • ${relativeFileDirname} - the current opened file's dirname relative to workspaceFolder
  • ${fileBasename} - the current opened file's basename
  • ${fileBasenameNoExtension} - the current opened file's basename with no file extension
  • ${fileDirname} - the current opened file's dirname
  • ${fileExtname} - the current opened file's extension
  • ${cwd} - the task runner's current working directory on startup
  • ${lineNumber} - the current selected line number in the active file
  • ${selectedText} - the current selected text in the active file
  • ${execPath} - the path to the running VS Code executable
  • ${defaultBuildTask} - the name of the default build task (currently not supported)
  • ${pathSeparator} - the character used by the operating system to separate components in file paths

The example of predefined variables can be found here.

System Environment Variables

You can also reference environment variables through the ${env:Name} syntax (for example, ${env:USER}).

Be sure to match the environment variable name's casing, for example, ${env:Path} on Windows.

Requirements

Release Notes

Please see the release notes in CHANGELOG.

vscode-qt-for-python's People

Contributors

seanwu1105 avatar tjquillan avatar xxr0ss avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.