Several shortcuts in netbeans

Source: Internet
Author: User

Several common conveniencesCodeThe function is as follows:

1. Introduce the classes used

Select the class in the code, and then use Alt + Shift + F.

2. format the code

Select the code to be formatted, and then use Ctrl + Shift + F.

3. Generate the getter and setter methods for member variables

Right-click the member variable and choose refactor --> encapsulate fields from the context menu. Select the setter method and getter method to be added on the pop-up interface, and click Next. On the confirmation page that appears, you can select do refactoring to add the setter method and getter method.

4. Modify the file name

Use Alt + Shift + R.

5. Create a project

Use Ctrl + Shift + N.

6. Create a file

Use Ctrl + N.

7. Open the project

Use Ctrl + Shift + O.

8. Open a file

Use Ctrl + O.

9. Search

Use Ctrl + F. If you want to search for and select, you can use Ctrl + F3. If you want to find the next one, you can use F3. To find the last one, you can use Shift + F3.

10. Replacement

Use Ctrl + H.

11. Search

Use Ctrl + Shift + P.

12. Edit

Copy: Ctrl + c

Cut: Ctrl + x

Paste: Ctrl + V

These are common and some are not.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.