What are the shortcut keys in NetBeans? Shortcut keys in NetBeans

Time:2021-1-21

NetBeans is a very efficient ide tool for PHP programmers. It is powerful to complete the function, with good speed and no obvious shortcomings. Let’s share the common shortcut keys in NetBeans to help you use NetBeans better.

Software name:
A modular integrated development environment for Java standard of NetBeans ide V7.4
Software size:
250MB
Update time:
2014-03-14Download now

Software name:
NetBeans ide 7.1.2 PHP simplified Chinese version
Software size:
46MB
Update time:
2012-06-11Download now

Software name:
Official free Chinese version of NetBeans ide v8.1
Software size:
104MB
Update time:
2017-05-27Download now

1、 Common shortcut keys:

1. Find the specified content in the file Ctrl + F

2. Replace the specified content in the file Ctrl + H

3. Find the specified content in the whole project Ctrl + Shift + F

4. Auto copy whole line code Ctrl + Shift + up / down arrow keys

5. Comment / uncomment: Ctrl + / this function supports multi line comments, but you need to select the comment line first

6. Auto move code Alt + Shift + up / down arrow keys

7. The selected code is formatted Alt + Shift + F

8. Move the caret to the matching square bracket-[

9. CTRL + collapse (hide) code block on numeric keyboard

10. CTRL + on the numeric keyboard to expand the collapsed code block

11. Completion code: Ctrl + \ / / press this key combination anywhere to prompt the corresponding reference field;

12. Error prompt: Alt + Enter / / as the name suggests, when the system reports an error, press this combination to view the system prompt;

13. Automatically complete the string: Ctrl + L Ctrl + K / / the latter (Ctrl + L not used) key combination will automatically type the string, and each time you press it, a new string will be typed, with the sequence from bottom to top;

14. Right click: repair auto import

15. Right click: format code style

16. Import the required package: Ctrl + Shift + I

17. Format code: Alt + Shift + F

18. Comment / uncomment: Ctrl + /, this function supports multi line comments, but you need to select the comment line first

19. PSVM + Tab generates main method 20, South + tab / / generates output statement

21. Ctrl + Enter / / add a blank line without moving the cursor;

22. Alt + Shift + F / / format. I don’t know what it means. Experts can explain it;

23. Alt + Enter / / not very good at it;

24. Alt + insert / / insert code (including constructor, setter and getter methods, etc.);

25. Ctrl + tab / / switch between the open source files;

26. Ctrl + O or ctrlt + click / / to go to the source, that is, hold down the CTRL key and click a source to open the source code;

27. Alt + Shift + O / / go to class;

28. Shift + F6 / / run the current program

29. Ctrl + Shift + F5: / / debug the current program

30. Ctrl + F / / quickly find the string in the code

31. Ctrl + delete / / is also a commonly used shortcut. You can try it;

32. Ctrl + Shift + right / / select right one by one

33. Ctrl + Shift + left / / select left one by one

34. Ctrl + Shift + up / down / / copy the current line to the next line without moving the cursor

35. New project: ctrl-shift-n

36. Auto format code: alt-shift-f

37. Save file: ctrl-s

38. Code completion: Ctrl-“

39. Code auto completion: default tab (I prefer the space bar, which can be modified in “options editor”)

40. Display Javadoc: ALT-F1 36. Run main project: F6

41. Compile main project: shift-f11

42. Running file: shift-f6

43. New JUnit test: ctrl-shift-u

44. Running test: alt-f6

45. Set breakpoint: ctrl-f8

46. Debugging main project: ctrl-f5

47. Debug file: ctrl-shift-f5

48. Step by step debugging: F7

49. Code auto completion: Ctrl -. This can automatically complete code such as creating objects

50. Automatic code insertion: ALT insert, which can automatically insert the code of getter setter method

51. Follow the prompt: Alt + enter, for example: insert the required package or delete the unused import package

52. Auto repair import package: ctrl-shift-i

53. Repair the import package separately: alt-shift-i

54. Auto paste code: Ctrl Shift up / down

55. Auto move Code: ALT shift up / down direction key

56. Real time automatic completion of code template: tab

57. Variable rename: ctrl-r

58. Javadoc pop-up prompt: Ctrl Shift space

59. Variable rename: Ctrl + R

2、 Find, search and replace

61. Ctrl-f3 searches for words at the insertion point

62. F3 / shift-f3 find next / previous in file

63. Ctrl-F / h search / replace in file

64. Alt-f7 to find the use instance

65. Ctrl-shift-p search in project

66. Alt-shift-u to find the result of using instance

67. Alt-shift-h turns off search result highlighting

68. Alt-shift-l jump to the next in the list (all files)

69. Alt-shift-k jump to the previous one in the list (all files)

70. Ctrl-r reload the form

71. Alt-u-u converts the selection to uppercase

72. Alt-u-l converts the selection to lowercase

73. Alt-u-r switches the case of the selection

3、 Navigation in source code

74. Alt-shift-o to class

75. Alt-shift-e to JUnit test

76. Alt-o go to source code

77. Alt-g go to statement

78. Ctrl-b goes to super implementation

79. Alt-k / alt-l back / forward

80, ctrl-g to line

81. Ctrl-f2 switch to add / delete bookmarks

82. F2 / shift-f2 next / previous bookmark

83. F12 / shift-f12 next / previous use instance / compilation error

84. Select ctrl-shift-1 / 2 / 3 in project / file / favorite

85. Ctrl – [move the caret to the matching square bracket

86. Ctrl – ^ Ctrl – [(French / Belgian keyboard)

4、 Coding in Java

87. Ctrl-i coverage method

88. Alt-shift-f / I repair all / selected classes

89. Alt-shift-w is surrounded by try catch block

90. Ctrl-shift-f reset the selection

91. Ctrl-d / ctrl-t move one tab left / right

92. Ctrl-shift-t / D add / undo comment line (“//

93. Ctrl-l / K insert next / previous

94. ESC / Ctrl – space bar close / open code completion

95. Ctrl-m select the next parameter

96, shift – space bar, input space, do not expand abbreviations

97. ALT-F1 / shift-f1 display / search Javadoc

98, ctrl-shift-m extraction method

99. Alt-u-g puts “get” in front of the identifier

100. Alt-u-s puts “set” in front of identifier

101. Alt-u-i put “is” in front of identifier

102. Ctrl backspace / del delete the previous / current word

103. CTRL-E delete the current line

104, ctrl-j-s / E start / end recording macro

105. Ctrl-shift-j inserts an international string

106. Ctrl – collapse (hide) code block on numeric keyboard

107. Ctrl + on the numeric keyboard expands the collapsed code block

108. Ctrl Shift on numeric keyboard collapse all code blocks

109. Ctrl Shift + on the numeric keyboard expands all code blocks

110. ALT enter displays suggestions / tips

5、 Open and switch views

111. Ctrl-shift-0 displays the search results window

112, ctrl-0 display source code editor

113. Ctrl-1 displays the project window

114. Ctrl-2 displays the file window

115. Ctrl-3 displays the favorites window

116. Ctrl-4 displays the output window

117. Ctrl-5 displays the “running environment” window

118. Ctrl-6 displays the to do window

119. Ctrl-7 displays the navigation window

120. Ctrl-shift-7 displays the properties dialog box

121. Ctrl-shift-8 display component panel

122. Ctrl-8 displays the version control window

123. Ctrl-9 displays the “VCs output” window

124. Shift-f4 displays the document dialog box

125, ALT left arrow key to move to the left window

126. ALT right arrow to move to the right window

127. Ctrl tab (ctrl – ‘) switch between open documents

128. Shift escape maximizes the window (switch)

129, ctrl-f4 / ctrl-w close the currently selected window

130, ctrl-shift-f4 close all windows

131. Shift-f10 opens the context menu

6、 Compile, test and run

132. F9 compiles the selected package or file

133, F11 generate main project

134. Shift-f11 cleans up and generates the main project

135. Ctrl-q sets the request parameters

136. Create JUnit test with ctrl-shift-u

137. Ctrl-f6 / alt-f6 run JUnit tests for files / projects

138. F6 / shift-f6 running main project / file

7、 Debugging

139, F5 start debugging the main project

140. Ctrl-shift-f5 starts debugging the current file

141, ctrl-shift-f6 start debugging test for file (JU)

142. Shift-f5 / ctrl-f5 stop / continue debugging session

143, F4 run to the cursor position in the file

144, F7 / F8 step in / over

145, ctrl-f7 step out

146, Ctrl Alt up to go to the called method

147. Ctrl Alt down to call method

148. Ctrl-f9 calculates the value of the expression

149, ctrl-f8 switch breakpoint

150. Ctrl-shift-f8 creates a new breakpoint

151. Ctrl-shift-f7 create a new monitor

152. Ctrl-shift-5 displays the HTTP monitor

153. Ctrl-shift-0 displays the search results window

154. Alt-shift-1 displays the local variable window

155. Alt-shift-2 displays the monitor window

156. Alt-shift-3 displays the call stack window

157. Alt-shift-4 displays the class window

158. Alt-shift-5 displays the breakpoint window

159. Alt-shift-6 displays the session window

160, ctrl-shift-6 switch to the execute window

161, alt-shift-7 switch to the thread window

162, alt-shift-8 switch to the source window

At the end of the tutorial, what are the shortcut keys in NetBeans? NetBeans shortcut keys commonly used in the complete content, I hope you like it! For more NetBeans related tutorials, please continue to follow the developer website!