Questions tagged [code-navigation]

47 questions
2
votes
1 answer

I can't get VSCode to show me function names in the breadcrumbs / outline in c/c++ files

I'm on os 10.11.6 and using VSCode Version: 1.47.3 I've got PlatformIO and C/C++ extensions installed. I've been programming microcontrollers for a few years with this setup. One day I noticed that the breadcrumbs were showing up with the…
tavis
  • 200
  • 2
  • 9
2
votes
1 answer

Jump to source from console output in Visual Studio Code

Is it possible to setup Visual Studio Code to jump to source from console output? Here is my output: Is it possible to click on reduced.rs and open this file?
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
2
votes
1 answer

Visual Studio: Find class I'm in

How do I determine what class the method I'm looking at belongs to? public class class1 { ... } public class class2 { ... // many lines of code! public static bool TheMethodIWantToUse() { ... } ... // many more lines of code } public…
2
votes
2 answers

Visualising complex code flows in Visual Studio

I have one very old code-base which consists of C++, VB and Classic ASP nonsense and I am trying to understand some code flows there. Unfortunately, there are many projects written in different languages so best way to analyse code I found was to…
2
votes
1 answer

Vim modules for navigating C++ code base?

Besides ctags / cscope, what are good vim plugins for navigating C++ code base? Ideally, when my cursor is on a variable name, I would like to be able to know: what is the class of this variable, what functions can I call on this varaible, jump to…
anon
  • 41,035
  • 53
  • 197
  • 293
2
votes
1 answer

finding structure definition in qt creator

I'm trying to understand how one large programs work, and I coudn't think of anything better than running it in qt creator line by line. I found the main function, now I'm trying to find a definition of one structure. I'm ctrl+clicking it, then it…
user2547526
  • 71
  • 3
  • 14
1
vote
2 answers

Visual Studio Call Hierarchy : How to find calls through an implemented interface to a method?

with Visual Studio Call Hierarchy functionality I can find calls to a certain method. However, it doesn't seem to be able to find class through an implemented interface. Like in the following, if Method() is called through IFoo, these calls aren't…
Touko
  • 11,359
  • 16
  • 75
  • 105
1
vote
0 answers

ReSharper 6: Go To Derived Symbols - how to Include Library Types?

I remember that in R# 5 when you hit alt-end (go to inheritor), there was a list of inheritors which included library types. And types from current solution were bold. In version 6 I'm not able to see derived types in libraries, and I can't find an…
Pavel Tupitsyn
  • 8,393
  • 3
  • 22
  • 44
1
vote
2 answers

PhpStorm Move Caret to Next Blank Line

I'm used to the keyboard shortcut Ctrl DOWN in many editors that will jump the caret (cursor) to the next blank line in the code. This allows for quick navigation of the code. Perhaps I completely missed it, but the action of "move caret to next…
Alan Turing
  • 12,223
  • 16
  • 74
  • 116
1
vote
0 answers

[VsCode]: Is there any way to display the call heirarchy / call tree of C/C++ functions in Microsoft VsCode?

I am looking for a suitable extension or any feature in VsCode that enables me to view call hierarchy / call tree of C/C++ functions. This is a super useful feature for all developers when it comes to understanding huge code-bases. I have been using…
1
vote
0 answers

Visual Studio's Find All References. How does that work?

Visual Studio has a couple of great features: Find All References View Call Hierarchy I'd like to understand how these tools work. What are they using to efficiently identify the references to the method in question? Presumably it's not using…
DrGriff
  • 4,394
  • 9
  • 43
  • 92
1
vote
2 answers

Navigating the code of an actor system in Intellij IDEA

I use IntelliJ IDEA, but the question could relate to other IDEs. There is a great way to navigate the code with Ctrl+click. From the method call it jumps to the method declaration. It really boosts the productivity. Actor systems are based on…
mirelon
  • 4,896
  • 6
  • 40
  • 70
0
votes
3 answers

Code navigation breaks inside of $IFDEF blocks in Delphi 2010

I have a few conditionally compiled classes in my app. {$IFDEF SOME_OPTION} type TMyClass = class procedure Foo; end; {$ENDIF} ... {$IFDEF SOME_OPTION} procedure TMyClass.Foo; begin end; {$ENDIF} That option SOME_OPTION is defined in…
Andrew
  • 3,696
  • 3
  • 40
  • 71
0
votes
1 answer

How to make code navigation work for a Python project in VSCode

I have locally cloned the Tensorflow github project https://github.com/tensorflow/tensorflow I am using VSCode since it seems to be the recommended IDE. One feature that will make it easier for me to explore the code is "click to navigate" (i.e when…
0
votes
1 answer

What's the easiest way to open the same place in code from Pycharm to VSCode and vice-versa?

Say you are editing code in one IDE and want to open the same file and place the caret at the same place in the other IDE. How would you do that between Pycharm and VSCode? Is there a pair of extensions for that? Or a standard way of noting said…
LoneCodeRanger
  • 413
  • 6
  • 18