Get Exuberant Ctags to Stop Showing Variable Declarations

by Daniel Convissor at 2015-09-22 09:32:00

By default, the ctags parser tracks where variables are declared. So if your code follows the standard of naming object variables for the class they're instantiated from, hitting CTRL-] on a class name means you'll get brought to the tag-menulist instead of going directly to the desired class. And if it's a popular name, that means wading through pages of chafe. Plus it bloats the tags file.

Disabling this sillyness is as simple as passing the --php-kinds=-v argument to the ctags command.

Tags: ctags, vim, php

View all posts

Email me a comment:

(I'll append it here when I get a chance.)