2 ms·
> Jump to a function by name, jump to the next function, ctags allows you to do this. > duplicate the current line(s), move current line up/down, select curr
by jussij 14y ago
> Jump to a function by name, jump to the next function,
ctags allows you to do this.
> duplicate the current line(s), move current line up/down,
select current word/line, open file by partial name,
Any scriptable editor can do these sorts of things via a simple macro script. Now, yes the user would need to create the script, but in most case that would take less than a dozen lines of code.
And once created, the script could then run it directly, via a keyboard binding or in some case via a mouse click.
> jump to function declaration.
ctags once again.
> I hit CMD+B in PhpStorm and I get taken either inside the file or another file where that function is defined.
But if you then open a C/C++, Python, Perl, SQL or a Java file in PhpStorm suddenly those features no longer work.
Using the ctags approach the feature continues to work for any of the 33 languages supported by ctags.
- Osiris 14y agoI've used the ctags plugin for Sublime Text and it's pretty damn awful. Maybe it's just with PHP, but it seems to look only at symbol names and doesn't do any static analysis of the code, so if I have several functions named the same thing in various files ctags has no idea which one it should look up. It's also not up-to-the-second. It has to re-run an analysis of the whole project to update its db. It doesn't update it's cache as you edit a file. Not sure if that's ctags in general or just the ST2 plugin. Still, the point the author is making is that to make VIM useable you have to use a lot of plugins to get what you want while many IDEs provide it out of the box without the user needing to figure out what plugins/addons/scripts/config files to setup to get it to work.