---
name: "Padre::QuickFix"
section: "3pm"
platform: "linux"
package: "padre"
version: "1.00+dfsg-3"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/Padre::QuickFix"
---

# Padre::QuickFix(3pm)

Padre Quick Fix Provider API

## NAME

Padre::QuickFix - Padre Quick Fix Provider API

## DESCRIPTION

### Quick Fix (Shortcut: "Ctrl+2")

This opens a dialog that lists different actions that relate to fixing the code at the cursor. It will call **event\_on\_quick\_fix** method passing a Padre::Wx::Editor object on the current Padre document. Please see the following sample implementation:

```
        sub quick_fix_list {
                my ($self, $editor) = @_;
                my @items = (
                        {
                                text     => '123...',
                                listener => sub {
                                        print "123...\n";
                                }
                        },
                        {
                                text     => '456...',
                                listener => sub {
                                        print "456...\n";
                                }
                        },
                );
                return @items;
        }
```
