Skip to content

noctud/intellij-nette

Repository files navigation

Nette for PhpStorm and IntelliJ IDEA

JetBrains Marketplace Build License: MIT Discord

A lightweight PhpStorm plugin that provides smart IDE support for the Nette Framework. It adds autocompletion, navigation, type inference, and implicit usage detection for presenters, components, and links.

If you have any problems with the plugin, create an issue or join the Noctud Discord.

Ctrl+click navigation to presenters
Navigate to presenter class
Autocompletion in links
Autocomplete actions
Find Usages across link strings
Find Usages
Component type inference
Component type resolution

Installation

Settings → Plugins → Marketplace → Search for "Nette" → Install → Apply

Installation from .jar file

Download the instrumented.jar file from the latest release or the latest successful GitHub Actions build.

Supported Features

Links

  • Autocompletion for action, signal, and presenter names in link(), redirect(), forward(), and related methods
  • Ctrl+click navigation from link strings to presenter classes and action/signal methods
  • Module hierarchy support (e.g. :Web:Server:Detail:default)
  • Highlighted link destination strings
  • Find Usages shows link string references for action/signal methods

Components

  • Autocompletion for component names in $this['...'] and $this->getComponent('...')
  • Type inference for component access — resolves return types from createComponent*() methods

Presenter methods

  • action*, render*, handle*, createComponent*, startup, beforeRender, afterRender, shutdown are marked as implicitly used
  • Nette Component subclasses are marked as implicitly used

Building

./gradlew build

Testing in sandbox IDE

./gradlew runIde