• Stars
    star
    182
  • Rank 209,963 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 6 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Qt for Python (PySide and PyQt) extension for Visual Studio Code.

Visual Studio Code Extension Qt for Python

build version rating downloads installs

A Visual Studio Code extension for PySide6, PySide2, PyQt6 and PyQt5.

Highlight Features

All features support multi-root workspace project.

QML

  • Syntax highlighting (qml and qmldir files)
  • Linting (requires PySide6 >= 6.3)
    • Support .qmllint.ini configuration file
  • Code completion (requires PySide6 >= 6.4)
  • Preview QML file in a separate window (requires PySide6)

Qt UI Files

  • Syntax highlighting (ui files)
  • Compile to Python code
  • Continuous compilation
  • Create and edit UI file with Qt Designer (requires PySide6 or PySide2)

Qt Resource Files

  • Syntax highlighting (qrc files)
  • Compile to Python code (requires PySide6, PySide2, or PyQt5)
  • Continuous compilation

Qt Style Sheets

  • Syntax highlighting (qss files)
  • Provide color picker for HEX, RGBA, HSVA, and HSLA code

Qt Translation Files

  • Syntax highlighting (ts files)
  • Extract translation strings from Python, QML and UI files
  • Edit translations with Qt Linguist (requires PySide6)
  • Compile to binary translation files (requires PySide6)

Supported Environment Variables

The following list shows the supported variables you can use in extension configurations.

Predefined Variables

  • ${userHome} - the path of the user's home folder
  • ${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 upon the startup of VS Code (currently not supported)
  • ${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
  • ${resource} - the path of the target file
  • ${resourceWorkspaceFolder} - the target file's workspace folder
  • ${relativeResource} - the target file relative to it's workspaceFolder
  • ${relativeResourceDirname} - the target file's dirname relative to it's workspaceFolder
  • ${resourceBasename} - the target file's basename
  • ${resourceBasenameNoExtension} - the target file's basename with no file extension
  • ${resourceDirname} - the path of the target file's dirname
  • ${resourceExtname} - the target file's extension

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.

Release Notes

Please see the release notes in CHANGELOG.

Contributing

Please see how to contribute in CONTRIBUTING.

More Repositories

1

pyqt5-qtquick2-example

A sample of QtQuick 2 providing material and fluent design themes in PyQt5.
Python
356
star
2

neural-network-sandbox

A toy about fundamental neural network algorithms and Qt Quick 2 interface.
QML
75
star
3

ionic-pwa-example-moment

A sample camera app implemented with PWA and Ionic 5.
TypeScript
28
star
4

ncu-helper

Add some features and change the design of NCU webpages in more modern style.
CSS
14
star
5

adaptive-huffman-coding

Adaptive Huffman coding algorithm in Python.
Python
13
star
6

prototype-jpeg

A prototype JPEG compressor (only algorithm without header) in Python.
Python
9
star
7

mips-pipelined-processor

Simulate the simple MIPS pipeline. Including structural, data and control hazard detection.
Java
7
star
8

fuzzy-car

A sandbox of the practice for the fuzzy system.
Python
4
star
9

uml-diagram-editor

A toy UML diagram editor.
Java
3
star
10

notes

Notes from books and experience.
Shell
3
star
11

pso-car

A sandbox practice for the particle swarm optimization.
Python
2
star
12

mini-lisp-interpreter

An interpreter of Mini-LISP.
Python
2
star
13

telecom-voice-classification

The automatic classification project for telecom voice.
Python
2
star
14

valley-wildfire-viz

CS530 Introduction to Scientific Visualization final project @Purdue.
Python
2
star
15

countdown-recorder

A countdown recorder for TOEFL speaking test practice.
TypeScript
2
star
16

ga-car

A sandbox practice for the genetic algorithm.
Python
2
star
17

seanwu1105

Oh, that's me.
1
star
18

how-to-assemble-toolbox

A simple ADV game in console with assembly language.
Assembly
1
star
19

purdue-cs573-project

CS573 Data Mining final project @Purdue.
Jupyter Notebook
1
star
20

emotion-api-simple-gui

A simple GUI application for Microsoft Emotion API.
Python
1
star
21

ReMusic

A mini game about rebuilding music pattern
Java
1
star
22

docs-populator

Mail Merge with HTML and CSV.
HTML
1
star