How far did DevExpress get with Javascript refactoring?

后端 未结 3 1413
臣服心动
臣服心动 2020-12-30 06:56

Over a year ago, I remember watching one of DevExpress evangelists previewing or at least promoting rich Javascript refactoring (beyond just limited intellisense) within the

3条回答
  •  不思量自难忘°
    2020-12-30 07:47

    CodeRush supports fifty-two JavaScript refactorings:

    • Add Block Delimiters
    • Add Parameter
    • Break Apart Arguments
    • Break Apart Parameters
    • Case to Conditional
    • Combine Conditionals (nested)
    • Combine Conditionals (parallel)
    • Compress Assignment
    • Compress to Ternary Expression
    • Concatenate Strings
    • Conditional to Case
    • Create Multi-variable Declaration
    • Create Overload
    • Create Setter Method
    • Create With Statement
    • Expand Assignment
    • Expand Ternary Expression
    • Extract Method
    • Flatten Conditional
    • For to ForEach
    • ForEach to For
    • Initialize Conditionally
    • Inline Recent Assignment
    • Inline Result
    • Inline Temp
    • Inline With Statement
    • Introduce Local
    • Introduce Local (replace all)
    • Introduce Result Variable
    • Line-up Arguments
    • Line-up Parameters
    • Move Declaration Near Reference
    • Move Initialization to Declaration
    • Promote to Parameter
    • Remove Block Delimiters
    • Remove Parameter
    • Remove Redundant Conditional
    • Rename Local
    • Reorder Parameters
    • Replace Temp with Query
    • Replace with Local
    • Reverse Conditional
    • Simplify Expression
    • Split Conditional
    • Split Conditional (and duplicate else block)
    • Split Initialization from Declaration
    • Split Multi-variable Declaration
    • Split String
    • Split Temporary Variable
    • Split With Statement
    • Widen Scope
    • Widen Scope (promote to field)

    And eight consume-first declaration and quick fix features:

    • Add Contract
    • Add Else Statement
    • Declare Field
    • Declare Local
    • Mirror Code
    • Reverse For Loop
    • Rotate 90 Degrees
    • Spell Checker

    Also, we're working to improve our refactoring support for the 10.2 release. We've also recently improved Quick Nav to make navigating to JavaScript functions as easy as navigation in C# or VB. This improvement will ship in 10.2 but is available now for CodeRush customers in a daily build.

    Full Disclosure -- I lead the CodeRush team at DevExpress.

提交回复
热议问题