title: How to set sublime as an external editor for jshell?
body: <p>According to the jshell documentation:</p>
  
  <blockquote>
    <p>An alternative to editing at the command prompt is to use an external editor. This editor can be used to edit and create snippets, and is especially helpful for multiline snippets. You can configure JShell to use the editor of your choice.</p>
  </blockquote>
  
  <p>So to implement this, i use the following commands:</p>
  
  <pre><code>jshell&gt; /set editor sublime
  |  Editor set to: sublime
  </code></pre>
  
  <p>And then, i tried to edit a snippet as follows:</p>
  
  <pre><code>jshell&gt; /edit printName
  |  Edit Error: process IO failure: Cannot run program "subllime": error=2, No such file or directory
  </code></pre>
  
  <p>But, i got the above error.
  So is it the right way to set editor or something else is required?
  I also tried to set Microsoft Word as the editor and specified the exact application path from the Application folder of Mac as follows:</p>
  
  <pre><code>jshell&gt; /set editor /Users/karan.verma/Applications/Microsoft Word.app
  |  Editor set to: /Users/karan.verma/Applications/Microsoft Word.app
  </code></pre>
  
  <p>Even, when i set the editor as "atom", i got the same results:</p>
  
  <pre><code>jshell&gt; /set editor atom
  |  Editor set to: atom
  </code></pre>
  
  <p>But still it shows the same error. Any help?</p>