Really hoping for better auto-*indentation* of pasted code... > From: "Eugene Belyaev" <[EMAIL PROTECTED]> > Subject: RE: [Eap-list] pasting a selection should paste with users style > Date: Thu, 29 Nov 2001 12:28:23 +0300 > > Often, the code you just pasted from another place may not be valid > (uncompileable) in the new context.
Maybe so... maybe it refers to variables that don't exist and other such things, but almost always the code I paste can *syntactically* be present where I paste it. > And formatting it automatically > will not do a great job. I very much disagree. >I think it's still better to make such things > step by step. Sure, there are usually other steps that immediately follow pasting and indenting that have to do with making the code work... but IDEA could do one of those steps for me automatically--indenting. >We prefer to think about reorganizing the code more like > a refactoring than a simple copy/paste operation. This is an argument in my favor. IDEA's specialty is refactorings, no? :-) > Maybe what you would like to have is to keep the selection highlighting > of the pasted block so that you can immediately call Ctrl-Alt-F (Layout > code) if you are sure. Rick Vestal is the one who wanted code *formatting*, in which case this suggestion is a good compromise for him, I guess. Formatting goes beyond indenting; I'm only asking for intelligent indenting. The option in Editor/Auto-indent-pasted-block seems to do nothing for me. If it does anything, it doesn't do nearly enough that I'm asking it to do. I doubt this is hard, given that IDEA already has so much other editing smarts, but maybe I'm wrong. Please consider more intelligent indenting of pasted code in IDEA. Thanks. ~ David Smiley _______________________________________________ Eap-features mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-features
