File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/java/org/scijava/ui/swing/script Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -3246,7 +3246,10 @@ public void askChatGPTtoGenerateCode() {
32463246 setCursor (Cursor .getPredefinedCursor (Cursor .WAIT_CURSOR ));
32473247
32483248 // setup default prompt
3249- String prompt = "Write concise and high quality code in " + getCurrentLanguage ().getLanguageName () + " for ImageJ/Fiji.\n " +
3249+ String prompt =
3250+ "Write code in " + getCurrentLanguage ().getLanguageName () + ".\n " +
3251+ "Write concise and high quality code for ImageJ/Fiji.\n " +
3252+ "Put minimal comments explaining what the code does.\n " +
32503253 "The code should do the following:\n " +
32513254 getTextArea ().getSelectedText ();
32523255
@@ -3266,7 +3269,7 @@ public void askChatGPTtoGenerateCode() {
32663269 }
32673270
32683271 //getTextArea().insert(answer, getTextArea().getCaretPosition());
3269- getTextArea ().replaceSelection (answer );
3272+ getTextArea ().replaceSelection (answer + " \n " );
32703273 setCursor (Cursor .getPredefinedCursor (Cursor .DEFAULT_CURSOR ));
32713274 });
32723275 }
You can’t perform that action at this time.
0 commit comments