Telerik

JustCode

Skip Navigation LinksHome / Products / JustCode / Features

JustCode Overview

JustCode is an agile development add-in for Visual Studio 2005 and 2008 that enhances .NET development productivity by providing blazing fast solution-wide, on-the-fly code analysis and error checking, smart code navigation and refactoring features. With a cross-language engine, JustCode provides features for C#, VB.NET, ASP.NET, XAML, JavaScript and HTML and supports multi-language solutions.

Features

All feature list

Code Analysis

  1. Solution-Wide On-the-fly Analysis

    JustCode detects errors throughout the current solution in real time. Whenever the code is changed the error results are made immediately available. Thus, with JustCode you can instantly see how changes in a file affect other files, even across language barriers.

  2. Error Navigation

    JustCode provides commands to enable you navigate through the found errors.
  1. Code Highlighting

    JustCode performs inspections over your code to find compiler errors and warnings and also code inefficiencies determined by some rules. Once JustCode finds an error or warning, it highlights it with a different color: errors are in red; warnings are in green and find usages in blue.

    Code Highlightingenlarge screenshot
  1. Inspection Details

    All code inspection details like errors, warnings and suggestions are displayed and explained in a couple of different ways as follows:

    • Via Tooltip over a highlighted expression
    • Via Tooltip in the Marker Bar
    • In the Error List Window
    Inspection Detailsenlarge screenshot
All feature list

Code Navigation and Search

JustCode comes with a powerful navigation and search engine that provides a number of features to let you quickly navigate to different parts of your code, easily find and highlight symbol usages, definitions, types, members, errors, etc. As you search, JustCode keeps track of returned results and lets you navigate through them quickly via a convenient Find Results Window.

To speed-up the search process JustCode provides the so called Camel Case Search which lets you search by capital letters of compound names.

  1. Go-to Commands

    • Go to Definition - quickly navigate to the definition of a class, struct, method, property or various other types of declaration in your code.
    • Go to File - lets you search and navigate to a file within your solution.
    • Go to Type - lets you search and navigate to a type you are looking for.
    • Go to typeenlarge screenshot

    • Go to Symbol - you can navigate to any symbol your are looking for within your file or solution-wide.
    • Go to Member - lets you search and navigate to a member you are looking for.
    • Go To Memberenlarge screenshot

    • Go to Pervious/Next Error - By using Go To Previous Error and Go To Next Error commands you can navigate between the errors found by JustCode.
  1. Usages

    JustCode helps you find, highlight and navigate through usages of namespaces, types, method, fields and local variables in your code. The commands related to usages are:

    Find Usages – quickly locates the places where certain namespace, type, method, property, field, or local variable is used in the solution.

    Find Extended Usages –helps you locate the places where certain type and its members are used in the solution. It also finds a certain namespace, method, property, field, or local variable usage. The only difference with the Find Usages command is that when you search for a type it also includes usages of its members in the results.

    Highlight Usages - highlights the usages of the selected identifier in all files within the solution. JustCode also marks the highlights in the Marker Bar to indicate the relative position of the usage in the file.

    Highlight Usagesenlarge screenshot

    Highlight Usages in File

    Go to Pervious/Next Usage - once a usage is highlighted, JustCode allows you to easily navigate through all found usages.

  1. Find Commands

    The find commands allow you to find and navigate through the code syntax

    Find Inheritors - find and navigate to derived types from a given type.

    Find Members Returning Type - find and navigate to members that return a certain type.

    Find Members Taking Type - find and navigate to members that take a certain type as a parameter

    Find Overridden Members - find and navigate to overridden abstract, virtual, override or interface members.

    Find Overriding Members - helps you find and navigate to overriding abstract, virtual, override or interface members.

    Find Overriding Membersenlarge screenshot
  2. Locate in Solution Explorer

    The Locate In Solution Explorer command lets you quickly find the currently opened file in Solution Explorer. JustCode automatically scrolls to the file and highlights it. This feature is especially handy in cases where you have a solution with hundreds of files and/or multiple projects.

All feature list

Code Generation

  1. Duplicate Text

    Duplicate Text assists you to duplicate a selection or a whole line. This command is especially useful by combining it with the Expand Selection command. For example, you can easily select a constructor/method signature, duplicate the selection and create a new constructor/method overload.

  2. Create Set/Get Property

    You can quickly select one or more fields and automatically to create read/write properties.

  1. Create constructor

    Create easily a non-default constructor on-the-fly by just selecting the fields that you’d like the constructor to take as parameters.

  2. Add Stubs for Required Members

    This command lets you implement an interface or abstract members on-the-fly. When you have a class that doesn't implement required member(s) from an interface or a base abstract class JustCode displays an error

  1. Expand Selection

    Expand Selection assists you to select logical parts of your code by executing the command several times until you get the selection you need.

    Expand Selectionenlarge screenshot
All feature list

Code Formatting

JustCode allows you to format your code against a set of rules defined either in the JustCode options and you could also reuse some Visual Studio default formatting options. Your formatting rules include indentation, aligning, spaces, braces layout, anything related to your code format. By executing the Learn Code Style From File command you can set your own custom set of code styles. This command is language dependant meaning that depending on what type of file (C#, VB.NET, ASP.NET, XAML, JavaScript, HTML) you execute it JustCode will set code styles for the current language. By default JustCode comes with set of predefined code styles for each supported language.

All feature list

Refactorings

JustCode provides a number of refactoring commands to help you improve your code by changing its structure while saving its behavior in the same time. Refactorings help simplifying your code, improve its readability and maintainability.

Here is a list with the most common refactorings in JC.

  1. Rename

    Allows you to quickly change the name of namespaces, types, methods, fields and practically every type of code you write (see details below). The operation replaces all references in code as well as in comments and string literals (optional).

    Refactoring Renameenlarge screenshot
  2. Organize and Add Missing Usings

    Helps you to easily sort, remove unused and add missing using directives.
  1. Introduce variable

    Introduce a new variable from an existing one; use an existing constant to introduce a new variable; use an existing expression to introduce a new variable
  2. Introduce Field

    Allows you to quickly create a new field from a selected constant expression and initialize it with the expression.
  3. Extract method

    Allows you reorganize your code for better reuse and readability by creating a new method based on a selected code fragment. By analyzing the selected code JustCode creates a new method that contains the extracted code and replaces it in the existing member with a call to the new method.
  1. Move/delete parameter

    You can quickly change parameter's position or remove it from method's signature.

    Move/Delete parameterenlarge screenshot
  2. Inline variable

    This refactoring replaces all occurrences of the selected variable with its initializer.
All feature list

Quick fixes

Quick Fixes provide a fast and easy way to fix errors and warnings in your code, to help you fix them instantly. All Quick fixes are available once JustCode detects an unknown identifier or a mismatch in your code. Here is a list of some of the most common quickfixes:

  1. Create method

    Creates a new method in the current class with a signature derived from the method invocation.

    Create Methodenlarge screenshot
  2. Delete

    The Delete quick fix is available for mistyped or needless syntax characters such as duplicate ;(semi-colon), }(curly bracket), etc.

  3. Replace With

    Works with declaring a method without returning type - suggest to rename the method name to the class name (create a constructor)
  1. Insert Cast/ Insert Safe Cast

    JustCode underlines the type mismatch expression and suggest you to automatically insert a cast (or a safe cast whenever appropriate) to the type of the expression standing on the left side of the assignment.

  2. Create property / Create auto-implemented property

    This fix is available once JustCode has detected an unknown identifier in your code.
  3. Error and Warning Control

    Allows you to quickly ignore errors and warnings in your code.

    Report Good Code Redenlarge screenshot
  1. Create variable

    Creates a local variable in the current method/constructor with the same name as the unknown identifier.
  2. Fix Using

    Underlines the type names that cannot be resolved and suggests you to automatically add a using directive or to fix all usings in the file.

    Fix Usingenlarge screenshot

  3. Create field

    Creates a field in the current class with the same name as the unknown identifier.

All feature list

Code Templates

Code Templates are reusable code snippets that allow you to quickly insert commonly used code fragments or surround given code fragment with a meaningful code block (example: try-catch statement).

In general there are three groups of templates:

  1. Iteration Templates

    Insert a code snippet related to C#/VB.NET/JavaScript iteration statements like foreach or for.
  1. Surround Templates

    Surround a C#/VB.NET/JavaScript code fragment with a valid language statement.
  1. Other Templates

    Insert a code snippet related to C#/VB.NET/JavaScript conditional or other basic statements like if or Console.WriteLine.Comparison

Powered by Sitefinity ASP.NET CMS

Contact Us | Site Feedback | Terms of Use | Privacy Policy
Copyright © 2002-2010 Telerik. All rights reserved.