JShell 자동 완성 도 제공할 수 있습니다. 기존 클래스의 이름을 부분적으로 입력할 때의 기능 , 변수 , 또는 메서드 탭 을 눌러 열쇠. 항목이 입력한 내용으로 판별할 수 없는 경우 가능한 옵션이 제공됩니다.
Tab 키 누르기 JShell 에서 다음 작업 중 하나를 수행합니다.
- 입력한 이름과 일치하는 다른 이름이 없으면 JShell이 나머지 이름을 입력합니다.
- 동일한 문자로 시작하는 이름이 여러 개인 경우 JShell은 다음에 입력할 항목을 돕기 위해 해당 이름 목록을 표시하고 다음 문자를 입력하고 tab을 누릅니다. 키 이름을 완성하려면 다시 누르세요.
- 지금까지 입력한 이름과 일치하는 이름이 없으면 경고음 피드백으로 사용됩니다.
예시
C:\Users\User>jshell
| Welcome to JShell -- Version 9.0.4
| For an introduction type: /help intro
jshell> String studentName(String firstName, String lastName)
...> {
...> return firstName + lastName;
...> }
| created method studentName(String, String)
jshell> /methods
| String studentName(String, String)
jshell> str <Press Tab Key>
studentName(
jshell> studentName(
studentName(
Signatures:
String studentName(String firstName, String lastName)
<press tab again to see documentation>
jshell> studentName(
String studentName(String firstName, String lastName)
<no documentation found>
<press tab again to see all possible completions; total possible completions: 545>