Is there an easy way to do this? On Aptana I used Control+click and I wish there was a way to do something similar on Atom.
标签:
atom-editor
相关问题
- Virtual Environment and Atom
- Lookbehind assertion regex in atom editor
- ES6: What does “import $ from 'jquery'” re
-
File “
”, line 1, in NameError: na - pip installed pylint cannot be found
相关文章
- Flow was not found when attempting to start Atom/N
- Open Atom editor from git shell
- Change keyboard shortcut to “Run Script” in Atom I
- Create Snippet with variables in Atom
- Can't add a new component to my angular 2 app
- Why can't Python run in Atom?
- Atom editor does not reload changed file
- Adding New Conda Env to Hydrogen for Atom
I also had the same problem. And I find the solution:
Update:
Thanks to @Joost, install Atom package python-tools to make it work
As of November 2018 the package autocomplete-python offers this functionality with this key combo:
Ctrl+Alt+G
with mouse cursor on the function call.
I believe the problem with "go to" packages is that they would work diferently for each language.If you use Javascript js-hyperclick and hyperclick (since code-links is deprecated) may do what you need.
Use
symbols-view
package which let your search and jump to functions declaration but just of current opened file. Unfortunately, I don't know of any other language's equivalent.There is also another package which could be useful for go-to in Python: python-tools
As of May 2016, recent version of Atom now support "Go-To" natively. At the GitHub repo for this module you get a list of the following keys:
symbols-view:toggle-file-symbols
to Show all symbols in current filesymbols-view:toggle-project-symbols
to Show all symbols in the projectsymbols-view:go-to-declaration
to Jump to the symbol under the cursorsymbols-view:return-from-declaration
to Return from the jumpI now only have one thing missing with Atom for this: mouse click bindings. There's an open issue on Github if anyone want to follow that feature.
Use atom-ctags as a package for C language with all things you need:
This feature has been built-in into Atom editor (see:
symbols-view
package), but you need to generate ctags symbols file for your project GH-9, GH-20.To do that, install
ctags
command (e.g.brew install ctags
on macOS), then:Append, link or copy
ctags-config
to your~/.ctags
, example on macOS:Go to your project folder and run:
Restart Atom editor.
Alternatively you can use
symbol-gen
package to generate ctags symbols file for your project based on the options found in.ctags
file. You can install it from Atom Package Manager by:apm install symbol-gen
. Then hit CMD-Alt-G to generate tags file for your project.After following above, you can use Go To Declaration option from the context menu.
On macOS you can use also use the following keyboard shortcuts:
To solve this, you'll need to install only 2 packages. Follow the steps below.
Open atom, go to Packages(top bar) --> Settings View --> Install Packages/Themes.
Type "goto" in the search field and click the packages button on the right.