Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I hide variables from symbols-view? #125

MianSaleem opened this issue Oct 9, 2015 · 6 comments


None yet
8 participants
Copy link

commented Oct 9, 2015

Is there any way to hide the variable name from symbols-view list, I need methods/functions only. Can anyone guide me?

@izuzak izuzak added the question label Oct 12, 2015


This comment has been minimized.

Copy link

commented Nov 15, 2015

👍 This is my biggest complaint about Atom. Variables do no good in that list. Any way or any package to do the symbols view with only functions/methods?


This comment has been minimized.

Copy link

commented Dec 5, 2015

Atom relies on ctags to actually generate symbols. You can configure ctags to ignore different types of symbols, including variables, interfaces, and classes - see the ENVIRONMENT VARIABLES and FILES section when running man ctags from the command line.

To give you a concrete answer (and guessing you are running python) add a $HOME/.ctags file on Mac, or a $HOME/ctags.cnf on Windows with the following content. This also removes imports from the symbols list.


See man ctags --<LANG>-kinds entry for more information about how to exclude and include classes of symbols.


This comment has been minimized.

Copy link

commented Dec 21, 2015

Thanks a lot @mshenfield 👍

to list the available possibilities type

ctags --list-kinds=php

It gave me

c classes
i interfaces
d constant definitions
f functions
v variables
j javascript functions

So for PHP


will list only classes, interfaces and functions


This comment has been minimized.

Copy link

commented Feb 4, 2016

@mshenfield thanks a lot.

btw, mine only show the left side of this cmd + r popup (name and line only), does anybody know how do i make code snippet and paths shown in the right side (like @MianSaleem image) ?
Edit: solved, using atom-ctags

thank you


This comment has been minimized.

Copy link

commented Apr 21, 2016

Would anyone else like for this to be a checkbox in the settings of the symbols-view package? This is the only thing that's got me using the atom-ctags package.


This comment has been minimized.

Copy link

commented Sep 6, 2017

doesn't seem to work anymore on Windows 10. I created HOME/ctags.cnf but variables still show up.

Running λ ctags --list-kinds=python shows the following:

c classes
f functions
m class members
v variables [off]
i imports [off]

Somehow, ctags in Atom is not reading the config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.