Skip to content

YoannQDQ/qgis-better-editor

Repository files navigation

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:

Better Editor (QGIS plugin)

Icon

This plugin improves the embedded Python editor with several useful features.

  • Smart autocompletion and call tips with Jedi jedi

  • Replace comment / uncomment action with a single well-behaved Toggle comment action (Ctrl+:)

toggleComment

formatCode

  • 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 and Ctrl+PgUp
  • Multiple syntax error check with jedi.

syntax check Original, simple check (QGIS) and multi check (Jedi)

Settings dialog

Settings dialog

  • 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)

Resource browser

Resource browser

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

About

QGIS plugin that improves the embedded Python Console / Editor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages