Using ‘/set’ command you can set an external editor.
Syntax
/set editor -wait open -a "Editor_Application_Path"
Example
/set editor -wait open -a "/Applications/Sublime\ Text.app/"
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: Execute the command ‘/edit’. It opens ‘JShell Edit Pad’.
Step 3: Set Sublime ad editor to this jshell by executing below command.
/set editor -wait open -a "/Applications/Sublime\ Text.app/"
jshell> /set editor -wait open -a "/Applications/Sublime\ Text.app/"
|  Editor set to: -wait open -a /Applications/Sublime Text.app/
Execute the command /edit to make sure that it opens Subime editor.
How to retain default editor?
Execute below command to retain default editor.
/set editor -retain -default
jshell> /set editor -retain -default
|  Editor set to: -default
|  Editor setting retained: -default
How to set external editor to all the jshell sessions?
Execute below command to retain external editor across all JShell sessions.
/set editor -retain -wait open -a "/Applications/Sublime\ Text.app/"
 
Previous Next Home


No comments:
Post a Comment