Ctrl+click on include file path does nothing
I'm looking at something like
include_once('/libraries/db.inc.php');
and want to open that file quickly but ctrl+click does nothing... the file does exist.
Also this does nothing (no slash):
include_once('libraries/session.inc.php');
请先登录再写评论。
Hello,
Is the libraries directory a part of the current project? Was it added into Preferences | Languages & Frameworks | PHP > Include Path?
Can you get the path completion when placing the caret between the quotes in include_once(''); and pressing Ctrl/Cmd+Space?
I discovered I had to hold down the Windows key on the keyboard while left-clicking the mouse to get typical Ctrl+click (like Windows) to work, but on the Mac, it can also open up the right-click menu... so it's kind of driving me crazy.
In Mac preferences, I've had the Ctrl and Command keys swapped (so that hitting Ctrl and T on the PC-based keyboard opens a new tab in Chrome, but I have to hit Ctrl+Tab to switch program windows, if that makes any sense), however I'm unable to get Windows+click to show in PHPStorm > Preferences > Keymap > Find Shortcut (the magnifying glass on the right with the three dots and blue center) so I can't tell what the name of the shortcut is to change it to Ctrl+click.
Can you tell me what the name of the shortcut is in Keymap that is the Windows equivalent of Ctrl+click? Just to be clear, this is the ability to easily go to a function call or class definition etc.
I figured it out, I had to go to Declaration, then set a mouse shortcut of Ctrl+click on my keyboard.