AI Lens
Collaborate with AI on top of your code, with one click. Define custom instructions and get results in seconds.
What is AI Lens?
AI Lens is a feature built on top of CodeLens, paired with custom-defined instructions that the AI model takes into account when processing pieces of your code. In Visual Studio Code, you'll get few built-in AI Lenses: Scan Bugs, Refactor Method, and Explain Code. Besides these, you have the option to create your own custom AI Lenses and define your own response/behavior instructions. With AI Lens, you won't have to copy code and repeat the same instructions over and over. Instead, you can handle it all with just a click.