anthonypetrov opened a new issue, #9409:
URL: https://github.com/apache/netbeans/issues/9409

   ### Description
   
   When pasting a code, I'd like NetBeans to auto-indent it (I'm mostly 
interested in Java, in case you need to specify the language). For example, if 
I paste a snippet inside a `{}` block, I'd like the snippet to be indented 
automatically so that it's visually inside that block. Whether this indentation 
adds more spaces on each line, or removes them - whatever is necessary for the 
pasted code to look "right".
   
   Current behavior: NetBeans leaves the indentation as it (i.e. each line 
starts at column zero with whatever indentation was present in the clipboard 
originally), forcing me to re-select the entire pasted block and then manually 
indent it by pressing TAB/Shift-TAB multiple times or otherwise.
   
   Desired behavior: there's IDEs out there that do auto-indent on paste. While 
I'm not a fan of those IDEs, I find this feature useful. The example IDE is the 
Intellij IDEA.
   
   ### Use case/motivation
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to