Derokorian: have you tried PyCharm, another one of JetBrain's IDE offerings (but for Python and Python frameworks)? From what I understand they have the same core code base spun off from IntelliJ IDEA, and while I was impressed by the features, something just did not sit well with me at the time with the interface. Unfortunately, I could not identify exactly what, i.e., it could have just been due to personal preference arising from past editor usage. Maybe I'll take another look at it, and now PhpStorm too, since some of my current work does involve PHP.

    laserlight I have not looked at PyCharm at all, as I don't do any python work. If you ever have trouble finding a feature in PHPStorm just post here, I'm sure I know where it is heh.

      I'm in the process of learning phpStorm right now, and it's code intelligence certainly seems better than Komodo Edit, at least in my first impressions. If in the end I feel at least as comfortable with it as I did with Komodo, I'll probably stay with it since our team of 4 are probably all going to switch to it (along with the shift to Laravel from our in-house framework, and which phpStorm seems to support very well).

        I'm pretty convinced. I was playing around with the code formatter yesterday and it's amazing. And I have setup LESS and UglifyJS on my system so my LESS and JavaScript files are automatically compiled. I can drop third-party compilers! I also love the in-depth ability to setup the colors - way better than Komodo; I can finally colour the <?php ?> tags again!

        The code intelligence/autocomplete is wondrous. It even picks up classes in my (compiled) CSS file when I add the class attribute to HTML elements. It shows the colour preview in the gutter even for my LESS colour variables.

        The only thing it seems isn't quite as good as Komodo is the fuzzy logic for searching for files using the "fast open" functionality. For example I have a file called header-home.php. In Komodo I could just type "header home" and it would come up in the results, but PhpStorm doesn't list it. I have to type something like "header-h". Far from a deal breaker, but something I have noticed.

        Overall though PhpStorm is far superior. I'm really glad I decided to try it out.

          There are different commands for opening a file. Given the file path "etc/env/local/app_config/env.spotx.daemon.sidxpub.xml" I hit ctrl+n and type local/sidx and then enter to open this file. So you can say its somewhere in a subfolder,. Its also pretty fuzzy in a file name too, given "spotx.spotmarket.sidx.type.market_conf.xml" I hit ctrl+n again and type sidxmarket and get this file to come back. For your file, you should be able to type "headh" to have it come up.

          What key mapping scheme did you use? Maybe you used a different one, there are open options that require typing entire file names.

            I am using the default keymap. I press Shift twice to bring up the "Search Everywhere" box, which to my understanding was a combination of all the other, more specific searches. Ctrl+n searches classes, shift+ctrl+n searches files. If I do shift+ctrl+n and type "header home" it does come up. I can also type "headh" and it comes up too. I guess the search everywhere box searches everything, but uses a more strict criteria for retrieving its results, probably to maintain performance. I wonder if there's a way to change that. I'm curious if it would hit performance a lot or if it would be barely noticeable (if it affects performance at all).

              This I cannot answer for you, you are using a different keymapping! (and no, there is no default, when you first open it after installing you pick a keymap scheme, which are based off of other IDEs, komodo not being an option). I never use search everywhere, as I generally don't want to search methods, classes, variables, and files all at once... I generally know what I"m looking for and use the tool specific to that.

                I mean the default keymap based on the option that's preselected from their list :p Pretty sure it was IntelliJ IDEA, which is JetBrains' Java IDE.

                I can only remember a couple other options, which were Visual Studio, Emacs, and I think Netbeans. I don't use any of those applications so I just stuck with their first choice.

                  I know what the answer is going to be, but I feel I need to ask anyway:

                  Do you know of a way to disable the autosave in PhpStorm? It makes me very uncomfortable and honestly what the hell? They can't include this as an option in their myriad of options? They have over 9000 options but don't include that as one? I searched online. There are some "mitigating" settings you can change, but it doesn't disable the autosave. I have never heard this in an IDE or text editor ever. At least not as a default, unchangeable setting. Like I get that some people may like it, which is why it should be included as an option, but I think most people are going to find it weird and unintuitive.

                  Anyway, just wondering if you had any insight on it. Maybe a plugin you know about that disables it, etc.

                  EDIT: Why did they even bother including a save button in the toolbar? 😕

                    Isn't that configurable here: [ATTACH]5193[/ATTACH] ?

                    Note: I'm using a "nightly build" version while waiting for the boss to actually buy some licenses, so maybe it's a new feature?

                    autosave.png

                      Those are the same options I have, but they don't actually disable the autosave - only configure how it works. I found this "guide", but when I tried making a change to a file, then immediately exiting the application, they changes were there (I opened the file in Komodo and Windows updated the modified date/time), so they obviously don't work. I have enabled the setting to mark a tab if I made a change (I would think this would be default - what if you accidentally typed something?), but that doesn't really solve anything, and if you close the file and reopen it, it still has the asterisk, kind of defeating its purpose.

                        You most certainly can, I'm using released 8.0.3 and using the search bar at the top, I typed in save and found the options nogdog pointed out. The search feature in settings is amazing and makes it easy to find what you're looking for without expanding all menus.
                        [ATTACH]5195[/ATTACH]

                        I'd also point out, that I don't know of anyone using PHPStorm that has changed this setting 😛

                        save.png

                          I didn't even know about it until I saw it here. Since everything I do is in Git, I guess if/when I saw any file changed during a "git status" that I didn't want changed, I just reverted it via Git without any thought as to why it may have been changed. 🙂

                            So I've done some testing and this is what I have discovered:

                            You can disable the "active" autosave, but when the application or project is closed, the changes are saved automatically. Makes me wonder what happens if the power goes out or if there's a system crash (or if the application crashes). Closing the file tab doesn't save the changes, and when you reopen the file, it will still have the asterisk. Pressing ctrl+s will manually save the file, removing the asterisk.

                            I have all the checkboxes under "Synchronization" unchecked.

                            There are no warnings when you try to close a tab, the project, or the application. You can set the "confirm application exit" option, but that is just in general - has nothing to do with modified files.

                            I'm still going to use PhpStorm over Komodo, but I honestly don't like this behaviour, and it baffles me that this isn't an option that users can control.

                            EDIT: It appears these changes do not apply to files that have file watchers assigned to them. I currently have a file watcher for my .less files and one for my .js files, and they are automatically saved and compiled as I type.

                              Bonesnap wrote:

                              Makes me wonder what happens if the power goes out or if there's a system crash (or if the application crashes). Closing the file tab doesn't save the changes, and when you reopen the file, it will still have the asterisk. Pressing ctrl+s will manually save the file, removing the asterisk.

                              You might want to ask your coworker who's using Sublime Text, because if I recall it's behaviour, you're describing the same thing that it does (and, If I recall rightly, it's the conventional behaviour for Mac apps in general; relevant because ST is a descendant of one.)

                                Basically what's happening, if PHPStorm keeps a changes history. If you right click a file in the project and choose show history under local history, you can see all the changes that have been made and revert any of them individually. So if the system crashes at most you would lose maybe a minute or two of changes.

                                  On the topic of opening files: Have you discovered cmd-click / ctrl-click on usages of classes and functions? It will take you to the definition. E.g.

                                  $foo = Foo::factoryBar();
                                  

                                  cmd-click / ctrl-click factoryBar would take you to the definition of Foo::factoryBar - it opens the file and scrolls factoryBar into view.

                                    johanafm;11046881 wrote:

                                    On the topic of opening files: Have you discovered cmd-click / ctrl-click on usages of classes and functions? It will take you to the definition. E.g.

                                    $foo = Foo::factoryBar();
                                    

                                    cmd-click / ctrl-click factoryBar would take you to the definition of Foo::factoryBar - it opens the file and scrolls factoryBar into view.

                                    You can also hit control b while your cursor is at a function/method/variable name.

                                      So it seems if you're switching between file types, the file watcher will stop compiling as well until you actually save. I noticed it when I went from my .less files to my main .js file (I have file watchers on both). Maybe it's just a coincidence but when my went back to my .less file and my menu wasn't updating I was wondering why :p. Other file types (.php) still update "manually".

                                      Weedpacket;11046861 wrote:

                                      You might want to ask your coworker who's using Sublime Text, because if I recall it's behaviour, you're describing the same thing that it does (and, If I recall rightly, it's the conventional behaviour for Mac apps in general; relevant because ST is a descendant of one.)

                                      He does have a Mac, but I am pretty sure he uses Coda on it, though he discovered there's a version of PhpStorm for Mac so he's going to look into that. He seemed off put by the autosave, so maybe the behaviour in Sublime Text 2 is different? He's been using Brackets lately, so maybe he just forgot.

                                      johanafm;11046881 wrote:

                                      On the topic of opening files: Have you discovered cmd-click / ctrl-click on usages of classes and functions? It will take you to the definition. E.g.

                                      $foo = Foo::factoryBar();
                                      

                                      cmd-click / ctrl-click factoryBar would take you to the definition of Foo::factoryBar - it opens the file and scrolls factoryBar into view.

                                      Komodo did this as well, though it was much slower and buggier.

                                        Bonesnap;11046711 wrote:

                                        But then they released version 8.5, and everything went to hell. I noticed code intelligence was very sluggish, slow, or simply didn't work. I would start typing, expecting some autocomplete for a variable or function and would get nothing. Or it would come up, but would take several seconds. Well obviously I could have just continued to type the function if I knew it was going to take 3 or 4 seconds for the list to appear. What's ironic is in the release notes for 8.5, ActiveState (the company that makes Komodo Edit) says they modified the code intelligence and autocomplete to be in its own process to improve performance. But the opposite happened! Native PHP functions and classes seemed to be okay, though.

                                        Maybe you should call up the Komodo team and tell them to quite hiring developers away from NetBeans :evilgrin: :evilgrin: :evilgrin:

                                        public function duck_and_run() {
                                        
                                           $this-height--;
                                        
                                           foreach ($range(1,1000) as $null) {
                                              $this->distance++;
                                           }
                                           exit; //bye now!
                                        }