ReformatPlugin 

HOME INDEX SEARCH GO  

 <<O>>  Difference Topic ReformatPlugin (r1.12 - 26 Aug 2003 - TimurZambalayev)
Added:
>
>

0.6.1 (#896) - Aug 26, 2003

  • Fixed FileNotFoundException bug (reported by Dani).
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.6"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.6.1"}%


 <<O>>  Difference Topic ReformatPlugin (r1.11 - 19 Aug 2003 - TimurZambalayev)
Changed:
<
<

Options: blankLineAtTheEndOfTheClass, spaceBeforeBraceInArrayInitializer, wrapSingleStatements.

>
>

Options: blankAfterLastMember, newArraySpace, shortenFq. Config file location: ${idea.config.path}/options/plugins/Reformat.xml

Changed:
<
<

Blank Line At The End Of The Class option.

>
>

blankAfterLastMember option.

Changed:
<
<

ReformatApplicationComponent.blankLineAtTheEndOfTheClass. By default it's disabled (set to false).

>
>

Blank line at the end of the class. By default it's disabled (set to false).

Changed:
<
<

Space Before Brace In Array Initializer option.

>
>

newArraySpace option.

Changed:
<
<

ReformatApplicationComponent.spaceBeforeBraceInArrayInitializer. By default it's disabled (set to false).

>
>

Space before brace in array initializer. By default it's disabled (set to false).

Changed:
<
<

Wrap Single Statements option.

>
>

shortenFq option.

Changed:
<
<

ReformatApplicationComponent.wrapSingleStatements. By default it's disabled (set to false).

>
>

Shorten fully qualified class references. By default it's disabled (set to false).

Changed:
<
<

http://www.intellij.net/tracker/idea/viewSCR?publicId=650 ("Add option for adding braces for "if/else" constructs with single statement")

>
>

http://www.intellij.net/tracker/idea/viewSCR?publicId=9553 ("New code layout action: optimize (shorten) FQCN")

Changed:
<
<

// Before for (int i = 0; i < 3; i++) System.out.println("hi"); while (b) System.out.println("hi"); do System.out.println("hi"); while (b); if (b) System.out.println("hi"); else System.out.println("hey");

>
>

class A { // Before java.util.Set set; }

Changed:
<
<

// After for (int i = 0; i < 3; i++) { System.out.println("hi"); } while (b) { System.out.println("hi"); } do { System.out.println("hi"); } while (b); if (b) { System.out.println("hi"); } else { System.out.println("hey");

>
>

import java.util.Set; class A { // After (actually, it depends on your code style settings) Set set;

Changed:
<
<

  1. Specify the location of $idea.home in build.properties
>
>

  1. Specify locations in build-home.properties
Added:
>
>

0.6 (#896) - Aug 19, 2003

  • Works only with Aurora builds (tested with #896).
  • New option: shorten fully qualified class references.
  • Removed wrap single statements option.
  • New location of the options: ${idea.config.path}/options/plugins/Reformat.xml.
  • Now the options data (if it's different from defaults) is not lost if you remove the plugin.
  • API changes (breaks TabifierPlugin).
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.5.1"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.6"}%

Changed:
<
<

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Reformat Code (Ctrl-Alt-L) and Optimize Imports (Ctrl-Alt-O) without a dialog. An additional action: 'Reformat Code And Optimize Imports' (Ctrl-Alt-R). Options: blankLineAtTheEndOfTheClass, spaceBeforeBraceInArrayInitializer, wrapSingleStatements."}%

>
>

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Reformat Code (Ctrl-Alt-L) and Optimize Imports (Ctrl-Alt-O) without a dialog. An additional action: 'Reformat Code And Optimize Imports' (Ctrl-Alt-R). Options: blankAfterLastMember, newArraySpace, shortenFq."}%


 <<O>>  Difference Topic ReformatPlugin (r1.10 - 20 Jun 2003 - TimurZambalayev)
Added:
>
>

0.5.1 (#705, #833) - Jun 20, 2003

  • Bug [ 758122 ] ReformatPlugin or TabifierPlugin error.
Changed:
<
<

  • Bug [ 755684 ] Sometimes enabled options don't work..
>
>

  • Bug [ 755684 ] Sometimes enabled options don't work.
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.5"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.5.1"}%


 <<O>>  Difference Topic ReformatPlugin (r1.9 - 20 Jun 2003 - TimurZambalayev)
Changed:
<
<

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Reformat Code (Ctrl-Alt-L) and Optimize Imports (Ctrl-Alt-O) without a dialog. An additional action: ReformatPlugin.ReformatCodeAndOptimizeImports (Ctrl-Alt-R). Options: blankLineAtTheEndOfTheClass, spaceBeforeBraceInArrayInitializer, wrapSingleStatements."}%

>
>

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Reformat Code (Ctrl-Alt-L) and Optimize Imports (Ctrl-Alt-O) without a dialog. An additional action: 'Reformat Code And Optimize Imports' (Ctrl-Alt-R). Options: blankLineAtTheEndOfTheClass, spaceBeforeBraceInArrayInitializer, wrapSingleStatements."}%


 <<O>>  Difference Topic ReformatPlugin (r1.8 - 17 Jun 2003 - TimurZambalayev)
Added:
>
>

Options: blankLineAtTheEndOfTheClass, spaceBeforeBraceInArrayInitializer, wrapSingleStatements.

Added:
>
>

Added:
>
>

Wrap Single Statements option.

ReformatApplicationComponent.wrapSingleStatements. By default it's disabled (set to false). See also HowToSetAnOption.

http://www.intellij.net/tracker/idea/viewSCR?publicId=650 ("Add option for adding braces for "if/else" constructs with single statement")

// Before
for (int i = 0; i < 3; i++) System.out.println("hi");
while (b) System.out.println("hi");
do System.out.println("hi"); while (b);
if (b) System.out.println("hi"); else System.out.println("hey");

// After
for (int i = 0; i < 3; i++) {
    System.out.println("hi");
}
while (b) {
    System.out.println("hi");
}
do {
    System.out.println("hi");
} while (b);
if (b) {
    System.out.println("hi");
} else {
    System.out.println("hey");
}
Added:
>
>

0.5 (#705, #823) - Jun 17, 2003

  • Bug [ 755684 ] Sometimes enabled options don't work..
  • Bug [ 756094 ] spaceBeforeBraceInArrayInitializer sometimes doesn't work.
  • RFE [ 756107 ] Wrap single statements (for, while, do while, if).
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.4"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.5"}%

Changed:
<
<

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Reformat Code (Ctrl-Alt-L) and Optimize Imports (Ctrl-Alt-O) without a dialog. An additional action: ReformatPlugin.ReformatCodeAndOptimizeImports (Ctrl-Alt-R)."}%

>
>

%META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Reformat Code (Ctrl-Alt-L) and Optimize Imports (Ctrl-Alt-O) without a dialog. An additional action: ReformatPlugin.ReformatCodeAndOptimizeImports (Ctrl-Alt-R). Options: blankLineAtTheEndOfTheClass, spaceBeforeBraceInArrayInitializer, wrapSingleStatements."}%


 <<O>>  Difference Topic ReformatPlugin (r1.7 - 06 Jun 2003 - TimurZambalayev)
Deleted:
<
<

http://www.intellij.net/tracker/idea/viewSCR?publicId=249 ("Formatter. Provide "Blank lines after last member" setting") http://www.intellij.net/tracker/idea/viewSCR?publicId=2393 ("Blank lines around method not honored at the end of the class")

Added:
>
>

http://www.intellij.net/tracker/idea/viewSCR?publicId=249 ("Formatter. Provide "Blank lines after last member" setting") http://www.intellij.net/tracker/idea/viewSCR?publicId=2393 ("Blank lines around method not honored at the end of the class")

class A { // Before

    void f() {
    }
}

class A { // After

    void f() {
    }

}

Space Before Brace In Array Initializer option.

ReformatApplicationComponent.spaceBeforeBraceInArrayInitializer. By default it's disabled (set to false). See also HowToSetAnOption.

http://www.intellij.net/tracker/idea/viewSCR?publicId=3228 ("Code Style: support formatting array literals")

new int[]{0, 1} // Before

new int[] {0, 1} // After
Added:
>
>

0.4 (#701, #818) - Jun 06, 2003

  • RFE [ 749836 ] BlankLineAfterLastMember, don't touch anonymous classes.
  • RFE [ 736785 ] Space before the brace in "new String[] {}".
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.3"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.4"}%


 <<O>>  Difference Topic ReformatPlugin (r1.6 - 31 May 2003 - TimurZambalayev)
Changed:
<
<

ReformatPlugin.ReformatCode - works on the current file or a selection (if there's a selection). Regular actions (ReformatCode and OptimizeImports; with a dialog) are replaced by the plugin's actions.

>
>

ReformatPlugin.ReformatCode - works on the current file or a selection (if there's a selection). Regular actions (ReformatCode and OptimizeImports; with a dialog) are replaced by the plugin's actions.

Changed:
<
<

This plugin uses non-published IDEA API (com.intellij.psi.codeStyle.CodeStyleManager and related classes).

>
>

This plugin uses non-published IDEA API.

Added:
>
>

Changed:
<
<

  • Copy the jar file (e.g. Reformat.jar) to the plugins directory ($IDEA_HOME/plugins).
>
>

  • Copy the jar file (e.g. Reformat.jar) to the plugins directory ($IDEA_HOME/plugins).
Added:
>
>

http://www.intellij.net/tracker/idea/viewSCR?publicId=249 ("Formatter. Provide "Blank lines after last member" setting") http://www.intellij.net/tracker/idea/viewSCR?publicId=2393 ("Blank lines around method not honored at the end of the class")

Added:
>
>

Blank Line At The End Of The Class option.

ReformatApplicationComponent.blankLineAtTheEndOfTheClass. By default it's disabled (set to false). See also HowToSetAnOption.

Changed:
<
<

  1. ant clean main.
>
>

  1. ant clean main.
Added:
>
>

0.3 (#701, #818) - May 31, 2003

  • RFE [ 736783 ] Blank line at the end of the class.
Changed:
<
<

-- TimurZambalayev - May 12, 2003

>
>

-- TimurZambalayev - May 11, 2003

Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.2"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.3"}%


 <<O>>  Difference Topic ReformatPlugin (r1.5 - 27 May 2003 - TimurZambalayev)

 <<O>>  Difference Topic ReformatPlugin (r1.4 - 24 May 2003 - TimurZambalayev)
Changed:
<
<

This plugin uses non-published IDEA API.

>
>

This plugin uses non-published IDEA API (com.intellij.psi.codeStyle.CodeStyleManager and related classes).

Changed:
<
<

Download Link.

>
>

Downloads, Bugs, RFEs:

Changed:
<
<

0.2 (#701, #813) - 15 May 2003
>
>

0.2 (#701, #813) - May 15, 2003
Changed:
<
<

0.1 (#701, #813) - 11 May 2003
>
>

0.1 (#701, #813) - May 11, 2003
Changed:
<
<

-- TimurZambalayev - 12 May 2003

>
>

-- TimurZambalayev - May 12, 2003


 <<O>>  Difference Topic ReformatPlugin (r1.3 - 15 May 2003 - TimurZambalayev)
Added:
>
>

0.2 (#701, #813) - 15 May 2003

  • RFE [ 736800 ] Optimize then Reformat.
  • RFE [ 736834 ] Ability to hook up afterReformat listeners.
  • Bug [ 738055 ] NPE at startup for #813.
Changed:
<
<

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.1"}%

>
>

%META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.2"}%


 <<O>>  Difference Topic ReformatPlugin (r1.2 - 12 May 2003 - TimurZambalayev)

 <<O>>  Difference Topic ReformatPlugin (r1.1 - 12 May 2003 - TimurZambalayev)
Added:
>
>

%META:TOPICINFO{author="TimurZambalayev" date="1052708820" format="1.0" version="1.1"}% %META:TOPICPARENT{name="TimurZambalayev"}%

Description.

ReformatCode (Ctrl-Alt-L) and OptimizeImports (Ctrl-Alt-O) without a dialog. ReformatPlugin.OptimizeImports - works on the current file. ReformatPlugin.ReformatCode - works on the current file or a selection (if there's a selection). Regular actions (ReformatCode and OptimizeImports; with a dialog) are replaced by the plugin's actions. You still have the access to the regular actions (Tools menu).

Plus there's an additional action: ReformatPlugin.ReformatCodeAndOptimizeImports (Ctrl-Alt-R). It does Optimize Imports and Reformat Code on the current file (even if there's a selection).

Warning.

This plugin uses non-published IDEA API.

Download Link.

http://sourceforge.net/projects/tz-ip/

How to deploy.

  • Copy the jar file (e.g. Reformat.jar) to the plugins directory ($IDEA_HOME/plugins).
  • Restart IDEA.

Relevant posts/requests:

http://www.intellij.net/tracker/idea/viewSCR?publicId=2389 ("Ability to Reformat Code (Ctrl-Alt-L) and Optimize Imports (Ctrl-Alt-O) with one command") http://www.intellij.net/forums/thread.jsp?forum=3&thread=4680&message=164804 ("Layout Code with option for Optimize Imports?") http://www.intellij.net/forums/thread.jsp?forum=3&thread=4329&message=141644 ("Splitted Reformat Code/Optimize Imports :(") http://www.intellij.net/forums/thread.jsp?forum=3&thread=237&message=3035 ("Layout Code and Optimize Imports")

Key Mapping.

regular action id                   regular keystroke   plugin action id

ReformatCode                        Ctrl-Alt-L          ReformatPlugin.ReformatCode
OptimizeImports                     Ctrl-Alt-O          ReformatPlugin.OptimizeImports
                                    Ctrl-Alt-R          ReformatPlugin.ReformatCodeAndOptimizeImports

How to build.

  1. Specify the location of $idea.home in build.properties
  2. ant clean main.

History.

0.1 (#701, #813) - 11 May 2003

  • ReformatPlugin.ReformatCode, ReformatPlugin.OptimizeImports, ReformatPlugin.ReformatCodeAndOptimizeImports.

-- TimurZambalayev - 12 May 2003 %META:FORM{name="IntelliJPluginWebForm"}% %META:FIELD{name="IntelliJPluginName" title="IntelliJPluginName" value="ReformatPlugin"}% %META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.1"}% %META:FIELD{name="IntelliJPluginVendor" title="IntelliJPluginVendor" value="TimurZambalayev"}% %META:FIELD{name="IntelliJPluginBinary" title="IntelliJPluginBinary" value="http://sourceforge.net/projects/tz-ip/"}% %META:FIELD{name="IntelliJPluginSource" title="IntelliJPluginSource" value="http://sourceforge.net/projects/tz-ip/"}% %META:FIELD{name="IntelliJPluginClassification" title="IntelliJPluginClassification" value=""}% %META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginPackage"}% %META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="ReformatCode (Ctrl-Alt-L) and OptimizeImports? (Ctrl-Alt-O) without a dialog. An additional action: ReformatPlugin.ReformatCodeAndOptimizeImports (Ctrl-Alt-R)."}% %META:FIELD{name="TestedOnOS" title="TestedOnOS" value="OsWin2K"}% %META:FIELD{name="ShouldRunOnOS" title="ShouldRunOnOS" value="AnyOS"}%


View | Diffs | r1.12 | > | r1.11 | > | r1.10 | More

e d i t a t t a c h r e f - b y d i f f s
Ideas,requests,problems regarding this site? Send feedback.
Copyright @ 2000-2003 by the contribution authors. All material on this collaboration tool is the property of the contributing authors.

Revision r1.1 - 12 May 2003 - 03:07 GMT - TimurZambalayev
Revision r1.12 - 26 Aug 2003 - 13:32 GMT - TimurZambalayev
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding this site? Send feedback.