Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CodeSceneNew to Visual Studio Code? Get it now.
CodeScene

CodeScene

CodeScene

codescene.com
|
5,424 installs
| (4) | Free
Integrates CodeScene analysis into VS Code. Keeps your code clean and maintainable.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeScene for VS Code

CodeScene Code Health

This extension analyses your code, and warns you if there are issues that makes it more difficult to maintain. This is a free, standalone version of CodeScene's code health analysis. It very likely supports your language. See the full list of supported languages below.

It performs the analysis in the background automatically and reports any issues right next to your code. See the screenshots to see how it's presented.

Code Health

Aside from reporting individual issues, we also display a Code Health score of 1-10 for each file. Code Health is an aggregated metric based on 25+ factors scanned from the source code. The Code Health factors correlate with increased maintenance costs and an increased risk for defects.

A healthy codebase enables a fast time-to-market with, on average, 124% faster development time. Healthy code also contains 15 times fewer defects than unhealthy code.

For further details on the business impact of code health, see the Code Red research paper.

Code Health Factors

Here are some examples of the factors that we measure:

  • Nested complexity (highly nested if-statements or loops)
  • Bumpy road (multiple chunks of nested complexity)
  • Complex functions (measured as high cyclomatic complexity)
  • Functions with too many arguments
  • Functions that are too long

You can find more detailed information for each Code Health issue by drilling down in the editor.

You may also look at our main CodeScene docs on code health for more info.

Change Coupling

Connect to your CodeScene subscription to enable the Change Coupling analysis. Looking at the Change Coupling will help you understand how files change together over time. It can be useful for navigating between related files, and can also make it easier to pinpoint other files that might need updating when working on a certain file. See more about Change Coupling on codescene.com.

Example screenshots

Issues are displayed above the affected functions. Clicking on them shows an explanation.

screenshot1

Issues are registered as warnings and collected in the Problems tab

screenshot3

A score based on the CodeScene code health concept is shown at the top of the file

screenshot2

Language support

CodeScene supports most popular languages. Here is the full list:

  • ✅ Apex (Salesforce)
  • ✅ BrightScript
  • ✅ C
  • ✅ C#
  • ✅ C++
  • ✅ Clojure
  • ✅ Dart2
  • ✅ Elixir
  • ✅ Erlang
  • ✅ Go
  • ✅ Groovy
  • ✅ Java
  • ✅ JavaScript
  • ✅ Kotlin
  • ✅ Objective-C 2.0
  • ✅ PHP
  • ✅ Perl 5
  • ✅ PowerShell
  • ✅ Python
  • ✅ Rational Software Architect models (C++)
  • ✅ React (jsx, tsx)
  • ✅ Ruby
  • ✅ Rust
  • ✅ Scala
  • ✅ Swift
  • ✅ TCL
  • ✅ TypeScript
  • ✅ Visual Basic .Net
  • ✅ Vue.js

Features

  • Diagnostics for functions with code health issues
  • Optionally show code issues as code lenses for the affected function
  • Customizable code health rules via .codescene/code-health-rules.json (format description). You can create a template with the command codescene.createRulesTemplate.
  • Use an active CodeScene account to enable monitoring of Change Coupling.

Note on custom code health rules: this is the same mechanism as the full CodeScene product. Adding this file to your repo affects analyses by CodeScene as well.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft