This guide will help you get up and running with CodeSense in just a few minutes. We'll cover the two most common ways to use CodeSense: the VS Code extension and the command-line interface (CLI).
The easiest way to get started with CodeSense is by using the VS Code extension. It provides real-time feedback and a seamless experience within your favorite editor.
- Open Visual Studio Code.
- Go to the Extensions view (Ctrl+Shift+X).
- Search for "CodeSense" and click Install.
- Open your web project in VS Code.
- Open the Command Palette (Ctrl+Shift+P).
- Type "CodeSense: Scan Project" and press Enter.
CodeSense will scan your project and display any compatibility issues it finds in the Problems panel (Ctrl+Shift+M). You can click on each issue to navigate directly to the problematic code.
The CodeSense CLI is perfect for integrating with your existing build tools and CI/CD pipelines.
Open your terminal and install the CodeSense CLI globally using npm:
npm install -g CodeSenseNavigate to your project's root directory and run the following command:
CodeSenseCodeSense will scan your project and print a summary of its findings to the console. For a more detailed report, you can generate an HTML report:
CodeSense --format htmlThis will create a CodeSense-report.html file in your project directory. Open this file in your browser to view the interactive report.
Now that you've seen the basics, you can explore the more advanced features of CodeSense:
- Installation: For more detailed installation instructions.
- Usage: For a comprehensive guide to all of CodeSense's features.
- Configuration: To learn how to customize CodeSense to your needs.