Awesome
Js Advice - Thinking JavaScript as Ninja
Download this extension from the VS Gallery or get the CI build.
Js Advice is a JavaScript code analyzer. Checking possible errors or bad practices will advise possible changes, in JavaScript code. By Light bulb (Visual Studio 2015) and intuitive menu.
See the changelog for changes and roadmap.
Features
- Using the Light Bulb Visual Studio 2015.
- Code fixed to Equals Operators
- Code fixed to Unequal Operators
- Code fixed to include Semicolon in end the command
- Code fixed to initialization of Array and Object
Light Bulb Visual Studio 2015:
Using the Light Bulb Visual Studio 2015:
Equals Operators:
In code that equality comparison is with two equal ==
, then will be shown an improvement (press 'ctrl + .' or click in light bulb), to use three equal ===
. Indicating how it will look the result.
Pressing enter or clicking on the suggestion, will apply.
Unequal Operators
When writing an unequal code !=
, It will be suggested to use !==
(press 'ctrl + .' or click in light bulb).
Suggestion apply:
Include Semicolon in end the command
When writing code that has no semicolon (;) at the end of the command will be suggested place.
Suggestion apply:
Initialization to Array and Object
When starting an object with new Array()
, it is suggested that will replace []
.
Suggestion apply:
And when starting an object with new Object()
, it is suggested that will replace {}
.
Suggestion apply:
Contribute
Check out the contribution guidelines if you want to contribute to this project.
For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.