This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
User problem: ----------------------------------- The user needs to manually tweak a code copied from elsewhere and pasted into the editor. User need: ----------------------------------- The user very often copies pieces of code from browser, or from other sources opened in the IDE. By providing automated code adaptation on paste (imports, indentation, variables use), the user would increase his productivity. Product requirement: ----------------------------------- Smart Paste (imports, indentation, variables)
Changing subcomponent to "clipboard"
The feature is partly implemented by adapting the indentation level of the pasted text according to the context. The rest of things (imports etc.) remains to be implemented.
In an initial implementation we could use the Import Manager to fix the imports. Still we should precisely quick-parse the pasted text for unresolved identifiers otherwise it would become quite annoying to escape the Import Manager when it would be in fact unnecessary.
"Import Manager" should be "Fix Imports" ;)
Moving to the 'other' subcomponent.
Is this issue still open? I was going to open a new issue because NetBeans doesn't smart paste for all file types and it should definitely do that. It seems to only work for Java and not C++ and other languages. Should I open a new one? This one is really old and was never closed.
I'm passing this on to C++ guys. When this is done please reassign to another language (I'm not sure which one that would be, but probably one of the web related such as jsp, html, php, ruby, ...). Thanks