Metalama 1.0 / / Metalama Documentation / Conceptual Documentation / Creating Aspects / Building IDE Interactions

Building IDE Interactions

You will almost certainly be aware of the code fixes and refactorings offered by your IDE via the screwdriver or lightbulb icons in the editor. These code actions have been programmed by the manufacturer of your IDE.

In this chapter, you will learn how to add your own actions to the screwdriver or lightbulb menus and how to integrate them with the other features of Metalama.

Benefits

The benefits of building custom IDE interactions for your architecture and your team are:

  • Fewer keystrokes. Developers have to type less.
  • Fewer documentation lookups. A code fix provides implicit implementation guidance. Developers' don't need to look at documentation to know how to fix the custom warning or error your aspect reported to their code.
  • Improve team alignment. By providing live templates for those implementation scenarios that occur most often, you are encouraging the team to follow common development patterns. The resulting code base will be more consistent.
  • Higher developers' productivity. By providing your development team with custom code fixes and refactorings you will enhance their productivity.

In this chapter

This chapter is composed of the following articles:

Article Description
Exposing an Aspect as a Live Template This article shows how to expose an aspect as a code refactoring that can be applied to source code instead of being applied in the background to the executable code.
Offering Code Fixes & Refactorings This article describes how aspects and validators can suggest code fixes and refactorings.