如何剪切和粘贴自动生成的代码(Netbeans不允许我删除该代码)?

时间:2019-06-04 18:05:17

标签: java swing netbeans

我想尽可能地整理代码,但是Netbeans不允许我删除自动生成的代码。

我已经尝试“突出显示”部分代码,然后按DEL键,但Netbeans阻止了我,也不会删除。

例如,我想

const mockQuery = jest.fn();
jest.mock('./QueryService', () => {
    return {
        QueryService: jest.fn().mockImplementation(() => {
            return { query: mockQuery };
        })
    };
});

反转代码的“成功”,并将passwordFieldKeyPressed设置为前一个,如下所示:

/*Con le frecce direzionali, scorre di box*/
    private void usernameTextFieldKeyPressed(java.awt.event.KeyEvent evt) {                                             
        if(evt.getKeyCode() == KeyEvent.VK_DOWN)    
            passwordField.requestFocus();
    }                                            

    /*Con le frecce direzionali, scorre di box*/
    private void passwordFieldKeyPressed(java.awt.event.KeyEvent evt) {                                         
        if(evt.getKeyCode() == KeyEvent.VK_DOWN)
            hostnameTextField.requestFocus();
        if(evt.getKeyCode() == KeyEvent.VK_UP)
            usernameTextField.requestFocus();
    } 

Netbeans does not allow me to delete this portion (and re-write in another portion of the screen

0 个答案:

没有答案