Beginner's help

Hi everyone,

I started using PhpStorm recently and there are few things I couldn't figure out, so if someone could point me in the right direction, I'd be very grateful:

  • how to change behaviour so that "Navigate to source" or in fact any linked file is opened at the end of current file list, instead of just next to current file?
  • how to open navigator (explorer) on the left side to currently opened file? Right now I just click through the path to reach the file - is there a way for navigator to reach the current file automatically? In Notepad++ this functionality is called "Navigate tree to current document"
  • how to find (and replace) instances of a search string in all currently opened files? In example there's a word "foo" that I'd like to replace with "bar" in all 10 my currently opened documents
  • right now I use total commander to find string in files in a particular path. Does phpstorm provide a better way to do that?
  • what does "Synchronize" in File menu do?
  • finally debugging: I've set up xdebug, loaded up a local project in phpstorm and created bookmarklets to stop and start debugging, set up breakpoints, can accept external connection, however when I start debugging, page refreshes and nothing happens. Any idea why?


thanks

7 comments
Comment actions Permalink

Hi srdjan,

how to change behaviour so that "Navigate to source" or in fact any linked file is opened at the end of current file list, instead of just next to current file?

You cannot. http://youtrack.jetbrains.com/issue/IDEA-56406

how to open navigator (explorer) on the left side to currently opened file? Right now I just click through the path to reach the file - is there a way for navigator to reach the current file automatically? In Notepad++ this functionality is called "Navigate tree to current document"

Navigate | Select In... | Project View (Alt+F1, 1 using default keymap)

how to find (and replace) instances of a search string in all currently opened files? In example there's a word "foo" that I'd like to replace with "bar" in all 10 my currently opened documents

Edit | Find | Find in Path... --> Scope | Custom | Open Files

right now I use total commander to find string in files in a particular path. Does phpstorm provide a better way to do that?

Edit | Find | Find in Path..

what does "Synchronize" in File menu do?

Detects all externally changed files and reload them from disk (so that internal metadata about project files is up to date) -- that's in case if PhpStorm does not detect such changes automatically.

finally debugging: I've set up xdebug, loaded up a local project in phpstorm and created bookmarklets to stop and start debugging, set up breakpoints, can accept external connection, however when I start debugging, page refreshes and nothing happens. Any idea why?

Not enough details -- you better start separate thread for this. But I recommend starting here (#4 and #6 should be enough to make it running (considering that all is configured properly)): http://confluence.jetbrains.net/display/WI/Documentation . There are quite a lot of topics on this subject -- please check them on this forum and see if they will help you. If not -- new thread with your settings, what you are doing and other details.

I also suggest starting with the most basic and simple code (few basic lines at most). Once you have it running (the debug, so you got familiarised yourself with the way how it is done in PhpStorm and making sure that all is configured properly), then you can move to your actual project

0
Comment actions Permalink

Thanks :) Oh yes, one more thing:

Is there a way to disable real time saving? I found a lot of resources that talk about autosave on close, or on frame activation.. but I'd like to disable real time saving while I'm actually working on the file. Is that possible?

0
Comment actions Permalink
real time saving

Please explain your definition of "real time saving".

The only options available are located at Settings | General | Synchronisation (those two "Save file..." options).

You cannot disable auto save on close, when making changes to the IDE settings or similar.

0
Comment actions Permalink

I have an impression that as soon as I type something, PhpStorm saves the file. If that is not so, then I don't know how to distinguish between saved and unsaved files.

0
Comment actions Permalink

I see.

Please uncheck View | Live Edit -- it's a separate plugin (Settings | Plugins) , and if you are not using such functionality it is better to disable it (I thought it should be turned off by default, but I guess it is not -- must be because not everyone who actually wants such functionality is able to find/activate it, so it is active by default -- unless you have activated it manually).

0
Comment actions Permalink

hmm it was unchecked, and plugin desc says html/css/js , I code PHP.. so that's probably something else.

0
Comment actions Permalink
nd plugin desc says html/css/js , I code PHP..

It works with PHP files as well.

hmm it was unchecked

Don't know then -- that is the only thing known to me that does such "save as soon as you type" thing (also check Settings | Live Edit).

Check other plugins then.

0

Please sign in to leave a comment.