Warning
This plugin is OBSOLETE and is not guaranteed to work beyond QGIS 3.10.
Some of its features will eventually be merged to QGIS:
- ToggleComment (qgis/QGIS#50341): 3.30
- Smart brackets (qgis/QGIS#51391): 3.30
- Fix altgr shortcut (qgis/QGIS#51420): 3.30
- Save / Run / Tab shortcuts (qgis/QGIS#51913): 3.30
- Format code (qgis/QGIS#51733): 3.32
- IPython-style system commands (qgis/QGIS#51919): 3.32
- Jedi features (autocompletion, calltips, goto): TBD
This plugin improves the embedded Python editor with several useful features.
-
Replace comment / uncomment action with a single well-behaved Toggle comment action (
Ctrl+:
)
- Format code with black formatter (
Ctrl+Alt+F
or Format on save)
- Better handling of
[{('""')}]
: automatic insertion and deletion - Goto definition: press F12 or F2 will go to the definition of the word under the cursor (works only within the script)
- Insert icon from QGIS resources: useful for quick prototyping
- Tweak some QGIS shortcuts which prevented user from entering
}
and|
in the console when keyboard used AZERTY (French) layout - Pressing Ctrl+S and Ctrl+Shift+S triggers file save when editor has focus
- Pressing Ctrl+R triggers script run
- Tab navigation with
Ctrl+PgDown
andCtrl+PgUp
- Multiple syntax error check with jedi.
Original, simple check (QGIS) and multi check (Jedi)
- Hide default QGIS comment & uncomment actions
- Set the max line length (will be used by the ruler, and black)
- Set the autocompletion threshold (Autocompletion is not triggered for words shorther than the threshold)
- Format on save applies black before saving file
- Configure the ruler
- Change the default folding indicator (QGIS default is
Plain
)
The resource browser allow to search through the embedded .qrc files to look for images to use as icon.
Copyright © 2020 Yoann Quenach de Quivillic