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 ) |
---|---|---|
qmake Files (pro ) |
Qt Linguist Translation (qt.ts ) |
QML Module Definition Files (qmldir ) |
---|---|---|
- 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
- Automatically get
- 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
- Automatically get
- 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
- Automatically get
- 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
- Automatically get
The following list shows the supported environment variables you can use for the path of Qt tools in configurations.
${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 toworkspaceFolder
${relativeFileDirname}
- the current opened file's dirname relative toworkspaceFolder
${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(currently not supported)${defaultBuildTask}
- the name of the default build task${pathSeparator}
- the character used by the operating system to separate components in file paths
The example of predefined variables can be found here.
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.
- Python
- Python Visual Studio Code Extension with
python.pythonPath
configuration (defaults topython
) - Qt for Python packages including PySide6, PyQt6, PySide2 and PyQt5.
Please see the release notes in CHANGELOG.