Referencer

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion Gogland DataGrip Rider Android Studio
04.08.2014
21 204
The plugin adds three new tools for inserting, copying and navigating among references out of the edited file(s) and other contexts. To copy and insert items, a list of suggestions is added to the editor, taken from various contexts, such as:
  • File(s)
  • Text selection
  • Caret position in the editor
  • Date and time
  • And more....

When evoking the referencer plugin, a list of reference items taken from the current contexts is opened.
Keyboard shortcuts:
  • Ctrl+Shift+Alt+V twice - Open list of references for inserting into the current document
  • Ctrl+Shift+Alt+C twice - Open list of references for copying to clipboard
  • Ctrl+Shift+Alt+G twice - Open list of jump destinations in current file for going to

Types of references to insert/copy:
All parsed items in the following list are relative to the current caret position, for example "previous classname" refers to the first classname found when searching backwards starting from the caret position. Some references are only specifically available for certain file types.

  • Current date/time formatted as YYYY-MM-DD and YYYY-MM-DD HH:MM:SS
  • Current UNIX timestamp in seconds and milliseconds
  • Path to current file
  • Current filename
  • Current filename::line number
  • Path to current file::line number
  • When having a multi-line selection: File path / selection: line num. sel. start - line num. sel. end
  • When having opened more than one file: list of paths to all opened files
  • PHP files: previous classname::previous method name
  • PHP files: previous classname::line number
  • PHP files: previous classname
  • PHP files: previous function name
  • PHP files: previous/next variable name
  • JavaScript files: namespace.classname
  • JavaScript files: namespace.classname.previous method name
  • JavaScript files: namespace.classname::line number
  • JavaScript files: previous/next method name
  • JavaScript files: filepath formatted as namespace
  • General word-completions: all continuations to the word to the left of the caret, found in the current file

Types of references to go to:
  • All lines with bookmarks in the current file
  • All lines with PHP or JavaScript method declarations in the current file
  • All lines with occurrences of any of the configured dynamic jump patterns in the current file

Please note: This plugin is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

Download plugin

Recent change notes

  • 1.1.1
    • Sorted "Go To..." jump destination from configured patterns alphabetically
    • Sorted "Go To..." methods alphabetically
    • Made section headers within options popup more visually obvious
    • Bugfix: Destination patterns were utilized even if not yet stored (= would list all lines)
  • 1.1.0
    • Added: plugin settings with dynamic "Go To..." jump patterns
    • Added: PHP and JavaScript methods listing in "Go To..." menu
    • Bugfix: IndexOutOfBoundsException in go to bookmark action
    • Reduced changelog to previous five versions, added separate full changelog
  • 1.0.12 Bugfix: Opening Referencer on first character of document caused IndexOutOfBoundsException
  • 1.0.11
    • Added: notification when there are no bookmarks for going to
    • Improved compatibility: Compiled with JDK target bytecode version 1.6 (was 1.7)
  • 1.0.10 Added: context menu to go action: remove all bookmarks from current file
  • 1.0.9 Added: action "go to bookmarks"

...Read full changelog on github