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.

Bug 35634 - Smart Paste
Summary: Smart Paste
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on: 35750
Blocks:
  Show dependency tree
 
Reported: 2003-08-21 11:05 UTC by mvinar
Modified: 2010-09-07 10:02 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mvinar 2003-08-21 11:05:59 UTC
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)
Comment 1 psuk 2004-03-23 18:50:58 UTC
Changing subcomponent to "clipboard"

Comment 2 Miloslav Metelka 2005-01-26 13:46:14 UTC
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.
Comment 3 Miloslav Metelka 2005-01-26 13:56:29 UTC
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.
Comment 4 Miloslav Metelka 2005-01-26 13:57:18 UTC
"Import Manager" should be "Fix Imports" ;)
Comment 5 Vitezslav Stejskal 2007-11-05 13:30:42 UTC
Moving to the 'other' subcomponent.
Comment 6 voidmain 2008-12-31 14:24:24 UTC
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.
Comment 7 Vitezslav Stejskal 2009-01-05 08:56:39 UTC
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