开发者

Does resharper add any kind of code refactoring to VS that Eclipse doesn't have?

And if so are there 开发者_如何学GoEclipse plugins that add those types of code refactoring to eclipse?

note:for C#/Java respectively.


Most of the JetBrains ReSharper refactoring features are already in Eclipse.

But Eclipse Helios 3.6 (to be released in July) actually introduce one revised refactoring:

3.6-M6:

The Convert Member Type to Top Level refactoring has been renamed to Move Type to New File and now allows any secondary type in a file to be moved into its own file. The action continues to work for member types.

alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M6-201003121448/images/move-type-to-new-file-refactoring.png

and it improves the Extract Method:

3.6-M1

The Extract Method refactoring now handles selections that contain continue statements. To preserve the semantics of the existing code, the selection needs to include the last statement of the loop. In the extracted method, continue statements are changed to return

alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M1-200908061400/images/extract-method-continue.png

For a selection that would need multiple return values in the extracted method, Eclipse now lists the conflicting variables in the error message:

alt text http://download.eclipse.org/eclipse/downloads/drops/S-3.6M1-200908061400/images/extract-method-multiple-return-values.png

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜