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() {
3246
3246
setCursor (Cursor .getPredefinedCursor (Cursor .WAIT_CURSOR ));
3247
3247
3248
3248
// 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 " +
3250
3253
"The code should do the following:\n " +
3251
3254
getTextArea ().getSelectedText ();
3252
3255
@@ -3266,7 +3269,7 @@ public void askChatGPTtoGenerateCode() {
3266
3269
}
3267
3270
3268
3271
//getTextArea().insert(answer, getTextArea().getCaretPosition());
3269
- getTextArea ().replaceSelection (answer );
3272
+ getTextArea ().replaceSelection (answer + " \n " );
3270
3273
setCursor (Cursor .getPredefinedCursor (Cursor .DEFAULT_CURSOR ));
3271
3274
});
3272
3275
}
You can’t perform that action at this time.
0 commit comments