Skip to content

A vscode extension to quickly print variable, variable type, tensor shape etc by using shortcuts

Notifications You must be signed in to change notification settings

wakamex/Quick-Python-Print

 
 

Repository files navigation

Quick Python Printf

Quick Python Printf Cover Image

Installation

In VSCode's plugin tab: search "Quick-Python-Printf".

Or get it from the Visual Studio Code Marketplace.

Works on vscode version ≥ 1.57.0.

Description

Forked from Quick Python Print.

The motivation was to use python f-strings, but version 2000 brought a total refactor with the following additions:

  • Use any f-string you want (completely customizable)
  • Undo any command with a single undo
  • 81% fewer lines of code (only 65!)
  • Change default keybinds to Ctrl+Shift+L, Ctrl+Shift+;, Ctrl+Shift+', Ctrl+Shift+/, Ctrl+Shift+Alt+/

Features from previous versions:

  • Recognize multiple variables being assigned to (if nothing is selected).
  • Add delimiter string

See this extension's github repo for changelog and feature requests.

Usage

Select the text you want to print, then press a keybind (like Ctrl+Shift+L).

Modify f-string as desired in VSCode's settings under QPP: Quick Python Print.

Modify keybindings as desired in VSCode's keyboard shortcuts settings.

This extension only activates when VSCode detects a python file is open (onLanguage:python).

License

MIT License

About

A vscode extension to quickly print variable, variable type, tensor shape etc by using shortcuts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 76.8%
  • Python 23.2%