Thursday 7 January 2021

Jshell: Auto Completion Support

‘tab’ key used to provide auto completion support. Enter any character and press tab key to see all possible completions.

 

Step 1: Open terminal and execute the command ‘jshell’.

$jshell
|  Welcome to JShell -- Version 10.0.2
|  For an introduction type: /help intro

jshell>

 

Step 2: Type the character / and enter tab key to see list of all possible commands available in jshell.

jshell> /
/!          /?          /drop       /edit       /env        /exit       /help       /history    /imports    /list       /methods    /open       /reload     
/reset      /save       /set        /types      /vars       

<press tab again to see synopsis>

 

Step 3: Type ‘System.’ and enter tab key to see all possible completions that starts with System.

jshell> System.
Logger                 LoggerFinder           arraycopy(             class                  clearProperty(         console()              currentTimeMillis()    
err                    exit(                  gc()                   getLogger(             getProperties()        getProperty(           getSecurityManager()   
getenv(                identityHashCode(      in                     inheritedChannel()     lineSeparator()        load(                  loadLibrary(           
mapLibraryName(        nanoTime()             out                    runFinalization()      runFinalizersOnExit(   setErr(                setIn(                 
setOut(                setProperties(         setProperty(           setSecurityManager(    

 

 

 

 

 

Previous                                                    Next                                                    Home

No comments:

Post a Comment