You can now connect the Amp CLI to JetBrains IDEs.
This provides Amp with context about your current file and selection. It also allows Amp to edit files directly through the IDE.
Update the Amp CLI to the latest version and run amp --jetbrains from the root of your project.
Learn more about the new JetBrains integration in the manual.