Goto symbol + goto line
Hi,
I see there is no command which would immediately go to some specific file and to specific line. For example, when i get an error in a stack trac, i could simply press ctrl+g and then type "myfile:50" and then it would go to myfyle.py and focus on line 50. This is an extremely usefull feature, i have used that for 4 years in SharpDevelop, and i really miss it in every IDE which does not have it.
Also, why does goto line and goto symbol have to differ? If i enter a number, then it goes to current file specific file, if i enter some letters then it searches for a symbol (which might also be a file name, and i could also add colon + number, to tell to go to specific file and line)
Do you think these features are reasonable?
Please sign in to leave a comment.
Hello Darius,
Allowing to enter a line number in Goto File dialog is a reasonable feature
request; you're welcome to post it at http://youtrack.jetbrains.net/
Merging Goto File and Goto Symbol is currently not feasible for performance
reasons: Goto Symbol uses a slower index, and if we used it for regular Goto
File operations, using PyCharm would be less comfortable. :-) Goto Line should
also remain a separate action: while entering line numbers in Goto File may
be convenient, it's not easily discoverable, and people should have a clear
way to use the simple Goto Line functionality.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
> while entering line numbers in Goto File may be convenient, it's not easily discoverable
But once discovered they will forget other ways to do that (my opinnion, of course). Python is for smart people, so i think if the feature is reasy to use, it will be found. If it is difficult to use, no matter how easy to find it, it will still not be used
> Merging Goto File and Goto Symbol is currently not feasible for performance reasons:
Well this is sad to hear. I have noticed that PyCharm is sometimes slow in places where it simply should not be. For example, after pressing a dot, a list of class members appears. So now when move with my keyboard up and down in that list, the member description box flickers, and is quite slow (to the extent that i simply can pres x number of times to move to my desired member / variable, but PyCharm will take 1 more second to move there). Hope you will resolve performance issues and will be able to provide this feature
Thanks for reply!