简体   繁体   English

如何从我在 Code::Blocks 中打开的文件或项目中查看函数列表?

[英]How do I view a Function List from my open file or project in Code::Blocks?

I frequently use Notepad++ for source code editing on my Windows machine.我经常使用 Notepad++ 在我的 Windows 机器上编辑源代码。 If I go to View --> Function List I can have it show a list of all the functions in the files I'm working in, so I can click on one and jump to that location.如果我转到查看 --> 函数列表,我可以让它显示我正在使用的文件中所有函数的列表,这样我就可以单击一个并跳转到该位置。

I just started using the Code::Blocks IDE now for C++.我刚刚开始使用 C++ 的 Code::Blocks IDE。 Does it have something similar, or a plugin that can do this?它有类似的东西,还是可以做到这一点的插件? I've searched around, googled a bit, and can't seem to find it anywhere.我四处搜索,用谷歌搜索了一下,似乎无法在任何地方找到它。

The comment below my question answered it.我的问题下面的评论回答了它。 Thank you.谢谢你。 In Code::Blocks it's not called a "Function List," it's simply called "Symbols."在 Code::Blocks 中,它不被称为“函数列表”,而被简称为“符号”。 It never occurred to me it would be under that name.我从没想过会用那个名字。 Click the "Symbols" tab on the left-hand side, select "Current File's symbols" under the "View" dropdown menu, and select "Global functions."单击左侧的“符号”选项卡,在“查看”下拉菜单下选择“当前文件的符号”,然后选择“全局函数”。 Then, you see the functions listed below.然后,您会看到下面列出的功能。 Double-click them to jump to any desired function's location.双击它们可跳转到任何所需功能的位置。

Boom done.繁荣完成。 That's all I wanted.这就是我想要的。

See here:看这里:

在此处输入图像描述

Also, see this image here, from @Fibbles.另外,请在此处查看这张来自@Fibbles 的图片。 He posted it as a link in the comments below.他将其作为链接发布在下面的评论中。 Click where he marked "Here" to get a function drop-down list, in alphabetical order, as an alternate way to jump to a function.单击他标记为“此处”的位置以获取按字母顺序排列的功能下拉列表,作为跳转到功能的替代方式。

在此处输入图像描述

Update 22 Apr. 2020: 2020 年 4 月 22 日更新:

I use Eclipse now, and highly recommend it, and have written full setup instructions in a PDF here.我现在使用 Eclipse,强烈推荐它,并在此处以 PDF 格式编写了完整的设置说明。 Check it out:看看这个:

  1. See the PDF in this GitHub project and folder: https://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles/tree/master/eclipse .请参阅此 GitHub 项目和文件夹中的 PDF: https ://github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles/tree/master/eclipse。
    1. Direct link: Eclipse setup instructions...pdf直接链接: Eclipse setup instructions...pdf

When you install CodeBlocks, you should get the option "Custom".安装 CodeBlocks 时,您应该获得“自定义”选项。

Select All Plugins iis where you will find that there are some useful plugins for you.选择 All Plugins iis,您会发现其中有一些对您有用的插件。 Or you can go to Plugins->Manage plugins to show the plugins management panel.或者您可以转到插件- >管理插件以显示插件管理面板。

You will find plugins it has installed automatically and from there you may install what you need.你会发现它已经自动安装的插件,你可以从那里安装你需要的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM