Method List in Visual Studio Code
I've recently started using the Visual Studio Code editor. I'm really loving it, but there's one critical feature (for me) that I haven't been able to find. Is there a method list, similar to the Navigator in NetBeans or Member dropdown in Visual Studio?
visual-studio-code
add a comment |
I've recently started using the Visual Studio Code editor. I'm really loving it, but there's one critical feature (for me) that I haven't been able to find. Is there a method list, similar to the Navigator in NetBeans or Member dropdown in Visual Studio?
visual-studio-code
1
See code.visualstudio.com/docs/editor/editingevolved
– simhumileco
Aug 22 '17 at 22:00
This missing feature is being tracked at github.com/Microsoft/vscode/issues/5605
– foz
Apr 25 '18 at 9:04
1
Released! code.visualstudio.com/updates/v1_24#_outline-view
– fkupper
Jun 13 '18 at 8:06
add a comment |
I've recently started using the Visual Studio Code editor. I'm really loving it, but there's one critical feature (for me) that I haven't been able to find. Is there a method list, similar to the Navigator in NetBeans or Member dropdown in Visual Studio?
visual-studio-code
I've recently started using the Visual Studio Code editor. I'm really loving it, but there's one critical feature (for me) that I haven't been able to find. Is there a method list, similar to the Navigator in NetBeans or Member dropdown in Visual Studio?
visual-studio-code
visual-studio-code
edited Jan 8 '18 at 13:29
wonea
2,3071464119
2,3071464119
asked Mar 22 '16 at 12:22
Jim CarrJim Carr
976279
976279
1
See code.visualstudio.com/docs/editor/editingevolved
– simhumileco
Aug 22 '17 at 22:00
This missing feature is being tracked at github.com/Microsoft/vscode/issues/5605
– foz
Apr 25 '18 at 9:04
1
Released! code.visualstudio.com/updates/v1_24#_outline-view
– fkupper
Jun 13 '18 at 8:06
add a comment |
1
See code.visualstudio.com/docs/editor/editingevolved
– simhumileco
Aug 22 '17 at 22:00
This missing feature is being tracked at github.com/Microsoft/vscode/issues/5605
– foz
Apr 25 '18 at 9:04
1
Released! code.visualstudio.com/updates/v1_24#_outline-view
– fkupper
Jun 13 '18 at 8:06
1
1
See code.visualstudio.com/docs/editor/editingevolved
– simhumileco
Aug 22 '17 at 22:00
See code.visualstudio.com/docs/editor/editingevolved
– simhumileco
Aug 22 '17 at 22:00
This missing feature is being tracked at github.com/Microsoft/vscode/issues/5605
– foz
Apr 25 '18 at 9:04
This missing feature is being tracked at github.com/Microsoft/vscode/issues/5605
– foz
Apr 25 '18 at 9:04
1
1
Released! code.visualstudio.com/updates/v1_24#_outline-view
– fkupper
Jun 13 '18 at 8:06
Released! code.visualstudio.com/updates/v1_24#_outline-view
– fkupper
Jun 13 '18 at 8:06
add a comment |
14 Answers
14
active
oldest
votes
Yes, there is the workbench.action.gotoSymbol
command. On Windows and Linux it's set to CTRL+Shift+O by default.
If this command isn't available for the file types you are working with then you should take a look at the VSCode extensions. Not all languages support this feature.
2
Hmm, not the behavior I was hoping for. I tried a couple of file types: In a C++ file, it says "Unfortunately we have no symbol information for the file" and in Python it says "There was an error in the Python extension".
– Jim Carr
Mar 22 '16 at 12:38
See the edit about extensions
– Wosi
Mar 22 '16 at 12:42
Well, dang, looks like I'm out of luck. I tried a different Python extension, now I'm getting the "no symbol information" error. :( Thanks for the info, though.
– Jim Carr
Mar 22 '16 at 12:52
5
This is symbols for PHP.
– ariefbayu
Feb 14 '17 at 3:03
10
Adding to this one, if you press:
afterCtrl+ Shift + O
, the results will be group by type, which will list all the functions in one sublist.
– Aditya Vikas Devarapalli
Mar 12 '18 at 23:35
|
show 1 more comment
Update: As stated in the comments by @jeff-xiao this extension is Deprecated and it's now a built in feature of Visual Studio code. It should be available at the bottom of file explorer as "Outline" view.
Previous text:
There is now an Extension that supports this. Code Outline creates a panel in the "Explorer" section and for JavaScript, will list variables and functions in a file. I've been using this for a while now and it scratches the itch I had. Other commenters have mentioned it supports Python and PHP well.
It still seems to be in development but I haven't had any issues. Development version available on GitHub. If you're the author reading this - thanks!
This is how it looks:
4
Good call, works well with JavaScript & no hunting for hidden keyboard shortcuts, nice.
– Julian Knight
Sep 29 '17 at 9:40
2
Good plugin - works well with Python.
– Dylan Hogg
Feb 15 '18 at 1:00
2
The extension is deprecated: DEPRECATED. Please use the Outline view that comes with Visual Studio Code.
– Jeff Xiao
Jul 26 '18 at 13:06
Am I correct that doesn't support viewing all the methods of a class in Python?
– Eric Auld
Jul 31 '18 at 20:58
I guess sometimes outline view doesn't show anything for python files.
– nurp
Dec 7 '18 at 8:27
add a comment |
Invoke Code's Go to symbol
command:
macOS: cmd+shift+o (the letter
o
, not zero)Windows/Linux: ctrl+shift+o
Typing a colon (:) after invoking Go to symbol
will group symbols by type (classes, interfaces, methods, properties, variables). Then just scroll to the methods
section.
1
Confirmed it also works on PHP too, but please notice I have PHP intellisense plugin installed. I don't know if it makes any difference.
– Ignacio Segura
Dec 14 '17 at 22:17
There must be an easy way to just see the methods. It's kind of a pain to scroll through the list of a bunch of other stuff to find the methods section. Someone should make a plug-in to do that if it isn't possible otherwise.
– orrd
Jun 3 '18 at 19:06
1
type @ instead of : for Go functions listing
– Altimac
Jul 9 '18 at 7:54
If not working for PHP then make sure you have 'PHP Symbols' plugin and will work for sure.
– Neeraj Singh
Feb 7 at 11:36
add a comment |
There's no such feature today,
the CTRL+SHIFT+O == CTRL+P @ doesn't work for all languages.
As a last resort you can use the search panel - although it is not so fast an easy to use as you'd like - you can enter this regex in the search panel to find all functions:
functions([_A-Za-z0-9]+)s*(
add a comment |
There is a new release that can do that!
Check here the latest release notes regarding code outline
add a comment |
I have found this extention: Code Outline.
This is how it looks like:
I believe that is what you have been looking for.
add a comment |
CTRL+F12 (CMD+F12 for Mac) - opens for me all methods and members in PHP class.
add a comment |
Open symbol by name :
CTRL+T
might be what you are looking for. Works perfectly with my TypeScript project.
add a comment |
ctrl+shift+o // This should work for javascript files by default
For PHP install the extension PHP SYMBOLS
FOR PYTHON install the extension PYTHON
On Reload, this will work fine
1
You could also doCtrl+P
and type@
- this lists all functions/symbols in the file. And when typing@function_name
does a fuzzy string search on the symbols.
– Roopak A Nelliat
Sep 12 '18 at 6:32
yes nice suggestion.. but you know it requires two steps, where as ctrl+shift+o is single step. :)
– Rifaideen
Sep 14 '18 at 6:39
add a comment |
There is a plugin called show functions which lists all the function definitions in a file. It also allows you to sort the function so can search them easily.
2
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
– Zoe
Oct 12 '18 at 15:43
add a comment |
It is an extra part to the answer to this question here but I thought it might be useful. As many people mentioned, Visual Studio Code has the OUTLINE part which provides the ability to browse to different function and show them on the side.
I also wanted to add that if you check the follow cursor mark, it highlights that function name in the OUTLINE view, which is very helpful in browsing and seeing which function you are in.
add a comment |
For PHP users :)
Make sure you have 'PHP Symbol' plugin then you can get all methods and class in 'OUTLINE' Sidebar's Bottom.
Press command + shift + o
OUTLINE:
@Symbol:
add a comment |
Take a look at Show Functions
plugin.
It can list functions, symbols, bookmarks by configurable regular expressions. Regular expressions are a real saver, expecially when you're not using a mainstream language and when CodeOutline doesn't do the job.
It's ugly to see a split window with these functions (CodeOutline seems to be better integrated) but at least there's something to use
add a comment |
Not a very good solution but you can search for 'def' with python, and you can quickly skip through each function/method. Hopefully will be a more graphical solution soon...
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f36154283%2fmethod-list-in-visual-studio-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
14 Answers
14
active
oldest
votes
14 Answers
14
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes, there is the workbench.action.gotoSymbol
command. On Windows and Linux it's set to CTRL+Shift+O by default.
If this command isn't available for the file types you are working with then you should take a look at the VSCode extensions. Not all languages support this feature.
2
Hmm, not the behavior I was hoping for. I tried a couple of file types: In a C++ file, it says "Unfortunately we have no symbol information for the file" and in Python it says "There was an error in the Python extension".
– Jim Carr
Mar 22 '16 at 12:38
See the edit about extensions
– Wosi
Mar 22 '16 at 12:42
Well, dang, looks like I'm out of luck. I tried a different Python extension, now I'm getting the "no symbol information" error. :( Thanks for the info, though.
– Jim Carr
Mar 22 '16 at 12:52
5
This is symbols for PHP.
– ariefbayu
Feb 14 '17 at 3:03
10
Adding to this one, if you press:
afterCtrl+ Shift + O
, the results will be group by type, which will list all the functions in one sublist.
– Aditya Vikas Devarapalli
Mar 12 '18 at 23:35
|
show 1 more comment
Yes, there is the workbench.action.gotoSymbol
command. On Windows and Linux it's set to CTRL+Shift+O by default.
If this command isn't available for the file types you are working with then you should take a look at the VSCode extensions. Not all languages support this feature.
2
Hmm, not the behavior I was hoping for. I tried a couple of file types: In a C++ file, it says "Unfortunately we have no symbol information for the file" and in Python it says "There was an error in the Python extension".
– Jim Carr
Mar 22 '16 at 12:38
See the edit about extensions
– Wosi
Mar 22 '16 at 12:42
Well, dang, looks like I'm out of luck. I tried a different Python extension, now I'm getting the "no symbol information" error. :( Thanks for the info, though.
– Jim Carr
Mar 22 '16 at 12:52
5
This is symbols for PHP.
– ariefbayu
Feb 14 '17 at 3:03
10
Adding to this one, if you press:
afterCtrl+ Shift + O
, the results will be group by type, which will list all the functions in one sublist.
– Aditya Vikas Devarapalli
Mar 12 '18 at 23:35
|
show 1 more comment
Yes, there is the workbench.action.gotoSymbol
command. On Windows and Linux it's set to CTRL+Shift+O by default.
If this command isn't available for the file types you are working with then you should take a look at the VSCode extensions. Not all languages support this feature.
Yes, there is the workbench.action.gotoSymbol
command. On Windows and Linux it's set to CTRL+Shift+O by default.
If this command isn't available for the file types you are working with then you should take a look at the VSCode extensions. Not all languages support this feature.
edited Jan 8 '18 at 13:27
wonea
2,3071464119
2,3071464119
answered Mar 22 '16 at 12:27
WosiWosi
21.1k105564
21.1k105564
2
Hmm, not the behavior I was hoping for. I tried a couple of file types: In a C++ file, it says "Unfortunately we have no symbol information for the file" and in Python it says "There was an error in the Python extension".
– Jim Carr
Mar 22 '16 at 12:38
See the edit about extensions
– Wosi
Mar 22 '16 at 12:42
Well, dang, looks like I'm out of luck. I tried a different Python extension, now I'm getting the "no symbol information" error. :( Thanks for the info, though.
– Jim Carr
Mar 22 '16 at 12:52
5
This is symbols for PHP.
– ariefbayu
Feb 14 '17 at 3:03
10
Adding to this one, if you press:
afterCtrl+ Shift + O
, the results will be group by type, which will list all the functions in one sublist.
– Aditya Vikas Devarapalli
Mar 12 '18 at 23:35
|
show 1 more comment
2
Hmm, not the behavior I was hoping for. I tried a couple of file types: In a C++ file, it says "Unfortunately we have no symbol information for the file" and in Python it says "There was an error in the Python extension".
– Jim Carr
Mar 22 '16 at 12:38
See the edit about extensions
– Wosi
Mar 22 '16 at 12:42
Well, dang, looks like I'm out of luck. I tried a different Python extension, now I'm getting the "no symbol information" error. :( Thanks for the info, though.
– Jim Carr
Mar 22 '16 at 12:52
5
This is symbols for PHP.
– ariefbayu
Feb 14 '17 at 3:03
10
Adding to this one, if you press:
afterCtrl+ Shift + O
, the results will be group by type, which will list all the functions in one sublist.
– Aditya Vikas Devarapalli
Mar 12 '18 at 23:35
2
2
Hmm, not the behavior I was hoping for. I tried a couple of file types: In a C++ file, it says "Unfortunately we have no symbol information for the file" and in Python it says "There was an error in the Python extension".
– Jim Carr
Mar 22 '16 at 12:38
Hmm, not the behavior I was hoping for. I tried a couple of file types: In a C++ file, it says "Unfortunately we have no symbol information for the file" and in Python it says "There was an error in the Python extension".
– Jim Carr
Mar 22 '16 at 12:38
See the edit about extensions
– Wosi
Mar 22 '16 at 12:42
See the edit about extensions
– Wosi
Mar 22 '16 at 12:42
Well, dang, looks like I'm out of luck. I tried a different Python extension, now I'm getting the "no symbol information" error. :( Thanks for the info, though.
– Jim Carr
Mar 22 '16 at 12:52
Well, dang, looks like I'm out of luck. I tried a different Python extension, now I'm getting the "no symbol information" error. :( Thanks for the info, though.
– Jim Carr
Mar 22 '16 at 12:52
5
5
This is symbols for PHP.
– ariefbayu
Feb 14 '17 at 3:03
This is symbols for PHP.
– ariefbayu
Feb 14 '17 at 3:03
10
10
Adding to this one, if you press
:
after Ctrl+ Shift + O
, the results will be group by type, which will list all the functions in one sublist.– Aditya Vikas Devarapalli
Mar 12 '18 at 23:35
Adding to this one, if you press
:
after Ctrl+ Shift + O
, the results will be group by type, which will list all the functions in one sublist.– Aditya Vikas Devarapalli
Mar 12 '18 at 23:35
|
show 1 more comment
Update: As stated in the comments by @jeff-xiao this extension is Deprecated and it's now a built in feature of Visual Studio code. It should be available at the bottom of file explorer as "Outline" view.
Previous text:
There is now an Extension that supports this. Code Outline creates a panel in the "Explorer" section and for JavaScript, will list variables and functions in a file. I've been using this for a while now and it scratches the itch I had. Other commenters have mentioned it supports Python and PHP well.
It still seems to be in development but I haven't had any issues. Development version available on GitHub. If you're the author reading this - thanks!
This is how it looks:
4
Good call, works well with JavaScript & no hunting for hidden keyboard shortcuts, nice.
– Julian Knight
Sep 29 '17 at 9:40
2
Good plugin - works well with Python.
– Dylan Hogg
Feb 15 '18 at 1:00
2
The extension is deprecated: DEPRECATED. Please use the Outline view that comes with Visual Studio Code.
– Jeff Xiao
Jul 26 '18 at 13:06
Am I correct that doesn't support viewing all the methods of a class in Python?
– Eric Auld
Jul 31 '18 at 20:58
I guess sometimes outline view doesn't show anything for python files.
– nurp
Dec 7 '18 at 8:27
add a comment |
Update: As stated in the comments by @jeff-xiao this extension is Deprecated and it's now a built in feature of Visual Studio code. It should be available at the bottom of file explorer as "Outline" view.
Previous text:
There is now an Extension that supports this. Code Outline creates a panel in the "Explorer" section and for JavaScript, will list variables and functions in a file. I've been using this for a while now and it scratches the itch I had. Other commenters have mentioned it supports Python and PHP well.
It still seems to be in development but I haven't had any issues. Development version available on GitHub. If you're the author reading this - thanks!
This is how it looks:
4
Good call, works well with JavaScript & no hunting for hidden keyboard shortcuts, nice.
– Julian Knight
Sep 29 '17 at 9:40
2
Good plugin - works well with Python.
– Dylan Hogg
Feb 15 '18 at 1:00
2
The extension is deprecated: DEPRECATED. Please use the Outline view that comes with Visual Studio Code.
– Jeff Xiao
Jul 26 '18 at 13:06
Am I correct that doesn't support viewing all the methods of a class in Python?
– Eric Auld
Jul 31 '18 at 20:58
I guess sometimes outline view doesn't show anything for python files.
– nurp
Dec 7 '18 at 8:27
add a comment |
Update: As stated in the comments by @jeff-xiao this extension is Deprecated and it's now a built in feature of Visual Studio code. It should be available at the bottom of file explorer as "Outline" view.
Previous text:
There is now an Extension that supports this. Code Outline creates a panel in the "Explorer" section and for JavaScript, will list variables and functions in a file. I've been using this for a while now and it scratches the itch I had. Other commenters have mentioned it supports Python and PHP well.
It still seems to be in development but I haven't had any issues. Development version available on GitHub. If you're the author reading this - thanks!
This is how it looks:
Update: As stated in the comments by @jeff-xiao this extension is Deprecated and it's now a built in feature of Visual Studio code. It should be available at the bottom of file explorer as "Outline" view.
Previous text:
There is now an Extension that supports this. Code Outline creates a panel in the "Explorer" section and for JavaScript, will list variables and functions in a file. I've been using this for a while now and it scratches the itch I had. Other commenters have mentioned it supports Python and PHP well.
It still seems to be in development but I haven't had any issues. Development version available on GitHub. If you're the author reading this - thanks!
This is how it looks:
edited Aug 29 '18 at 7:14
answered Sep 18 '17 at 19:30
Stuart BrockStuart Brock
1,57911315
1,57911315
4
Good call, works well with JavaScript & no hunting for hidden keyboard shortcuts, nice.
– Julian Knight
Sep 29 '17 at 9:40
2
Good plugin - works well with Python.
– Dylan Hogg
Feb 15 '18 at 1:00
2
The extension is deprecated: DEPRECATED. Please use the Outline view that comes with Visual Studio Code.
– Jeff Xiao
Jul 26 '18 at 13:06
Am I correct that doesn't support viewing all the methods of a class in Python?
– Eric Auld
Jul 31 '18 at 20:58
I guess sometimes outline view doesn't show anything for python files.
– nurp
Dec 7 '18 at 8:27
add a comment |
4
Good call, works well with JavaScript & no hunting for hidden keyboard shortcuts, nice.
– Julian Knight
Sep 29 '17 at 9:40
2
Good plugin - works well with Python.
– Dylan Hogg
Feb 15 '18 at 1:00
2
The extension is deprecated: DEPRECATED. Please use the Outline view that comes with Visual Studio Code.
– Jeff Xiao
Jul 26 '18 at 13:06
Am I correct that doesn't support viewing all the methods of a class in Python?
– Eric Auld
Jul 31 '18 at 20:58
I guess sometimes outline view doesn't show anything for python files.
– nurp
Dec 7 '18 at 8:27
4
4
Good call, works well with JavaScript & no hunting for hidden keyboard shortcuts, nice.
– Julian Knight
Sep 29 '17 at 9:40
Good call, works well with JavaScript & no hunting for hidden keyboard shortcuts, nice.
– Julian Knight
Sep 29 '17 at 9:40
2
2
Good plugin - works well with Python.
– Dylan Hogg
Feb 15 '18 at 1:00
Good plugin - works well with Python.
– Dylan Hogg
Feb 15 '18 at 1:00
2
2
The extension is deprecated: DEPRECATED. Please use the Outline view that comes with Visual Studio Code.
– Jeff Xiao
Jul 26 '18 at 13:06
The extension is deprecated: DEPRECATED. Please use the Outline view that comes with Visual Studio Code.
– Jeff Xiao
Jul 26 '18 at 13:06
Am I correct that doesn't support viewing all the methods of a class in Python?
– Eric Auld
Jul 31 '18 at 20:58
Am I correct that doesn't support viewing all the methods of a class in Python?
– Eric Auld
Jul 31 '18 at 20:58
I guess sometimes outline view doesn't show anything for python files.
– nurp
Dec 7 '18 at 8:27
I guess sometimes outline view doesn't show anything for python files.
– nurp
Dec 7 '18 at 8:27
add a comment |
Invoke Code's Go to symbol
command:
macOS: cmd+shift+o (the letter
o
, not zero)Windows/Linux: ctrl+shift+o
Typing a colon (:) after invoking Go to symbol
will group symbols by type (classes, interfaces, methods, properties, variables). Then just scroll to the methods
section.
1
Confirmed it also works on PHP too, but please notice I have PHP intellisense plugin installed. I don't know if it makes any difference.
– Ignacio Segura
Dec 14 '17 at 22:17
There must be an easy way to just see the methods. It's kind of a pain to scroll through the list of a bunch of other stuff to find the methods section. Someone should make a plug-in to do that if it isn't possible otherwise.
– orrd
Jun 3 '18 at 19:06
1
type @ instead of : for Go functions listing
– Altimac
Jul 9 '18 at 7:54
If not working for PHP then make sure you have 'PHP Symbols' plugin and will work for sure.
– Neeraj Singh
Feb 7 at 11:36
add a comment |
Invoke Code's Go to symbol
command:
macOS: cmd+shift+o (the letter
o
, not zero)Windows/Linux: ctrl+shift+o
Typing a colon (:) after invoking Go to symbol
will group symbols by type (classes, interfaces, methods, properties, variables). Then just scroll to the methods
section.
1
Confirmed it also works on PHP too, but please notice I have PHP intellisense plugin installed. I don't know if it makes any difference.
– Ignacio Segura
Dec 14 '17 at 22:17
There must be an easy way to just see the methods. It's kind of a pain to scroll through the list of a bunch of other stuff to find the methods section. Someone should make a plug-in to do that if it isn't possible otherwise.
– orrd
Jun 3 '18 at 19:06
1
type @ instead of : for Go functions listing
– Altimac
Jul 9 '18 at 7:54
If not working for PHP then make sure you have 'PHP Symbols' plugin and will work for sure.
– Neeraj Singh
Feb 7 at 11:36
add a comment |
Invoke Code's Go to symbol
command:
macOS: cmd+shift+o (the letter
o
, not zero)Windows/Linux: ctrl+shift+o
Typing a colon (:) after invoking Go to symbol
will group symbols by type (classes, interfaces, methods, properties, variables). Then just scroll to the methods
section.
Invoke Code's Go to symbol
command:
macOS: cmd+shift+o (the letter
o
, not zero)Windows/Linux: ctrl+shift+o
Typing a colon (:) after invoking Go to symbol
will group symbols by type (classes, interfaces, methods, properties, variables). Then just scroll to the methods
section.
edited May 9 '18 at 13:04
AStopher
2,18663760
2,18663760
answered Mar 10 '17 at 6:42
YilingYiling
1,83811622
1,83811622
1
Confirmed it also works on PHP too, but please notice I have PHP intellisense plugin installed. I don't know if it makes any difference.
– Ignacio Segura
Dec 14 '17 at 22:17
There must be an easy way to just see the methods. It's kind of a pain to scroll through the list of a bunch of other stuff to find the methods section. Someone should make a plug-in to do that if it isn't possible otherwise.
– orrd
Jun 3 '18 at 19:06
1
type @ instead of : for Go functions listing
– Altimac
Jul 9 '18 at 7:54
If not working for PHP then make sure you have 'PHP Symbols' plugin and will work for sure.
– Neeraj Singh
Feb 7 at 11:36
add a comment |
1
Confirmed it also works on PHP too, but please notice I have PHP intellisense plugin installed. I don't know if it makes any difference.
– Ignacio Segura
Dec 14 '17 at 22:17
There must be an easy way to just see the methods. It's kind of a pain to scroll through the list of a bunch of other stuff to find the methods section. Someone should make a plug-in to do that if it isn't possible otherwise.
– orrd
Jun 3 '18 at 19:06
1
type @ instead of : for Go functions listing
– Altimac
Jul 9 '18 at 7:54
If not working for PHP then make sure you have 'PHP Symbols' plugin and will work for sure.
– Neeraj Singh
Feb 7 at 11:36
1
1
Confirmed it also works on PHP too, but please notice I have PHP intellisense plugin installed. I don't know if it makes any difference.
– Ignacio Segura
Dec 14 '17 at 22:17
Confirmed it also works on PHP too, but please notice I have PHP intellisense plugin installed. I don't know if it makes any difference.
– Ignacio Segura
Dec 14 '17 at 22:17
There must be an easy way to just see the methods. It's kind of a pain to scroll through the list of a bunch of other stuff to find the methods section. Someone should make a plug-in to do that if it isn't possible otherwise.
– orrd
Jun 3 '18 at 19:06
There must be an easy way to just see the methods. It's kind of a pain to scroll through the list of a bunch of other stuff to find the methods section. Someone should make a plug-in to do that if it isn't possible otherwise.
– orrd
Jun 3 '18 at 19:06
1
1
type @ instead of : for Go functions listing
– Altimac
Jul 9 '18 at 7:54
type @ instead of : for Go functions listing
– Altimac
Jul 9 '18 at 7:54
If not working for PHP then make sure you have 'PHP Symbols' plugin and will work for sure.
– Neeraj Singh
Feb 7 at 11:36
If not working for PHP then make sure you have 'PHP Symbols' plugin and will work for sure.
– Neeraj Singh
Feb 7 at 11:36
add a comment |
There's no such feature today,
the CTRL+SHIFT+O == CTRL+P @ doesn't work for all languages.
As a last resort you can use the search panel - although it is not so fast an easy to use as you'd like - you can enter this regex in the search panel to find all functions:
functions([_A-Za-z0-9]+)s*(
add a comment |
There's no such feature today,
the CTRL+SHIFT+O == CTRL+P @ doesn't work for all languages.
As a last resort you can use the search panel - although it is not so fast an easy to use as you'd like - you can enter this regex in the search panel to find all functions:
functions([_A-Za-z0-9]+)s*(
add a comment |
There's no such feature today,
the CTRL+SHIFT+O == CTRL+P @ doesn't work for all languages.
As a last resort you can use the search panel - although it is not so fast an easy to use as you'd like - you can enter this regex in the search panel to find all functions:
functions([_A-Za-z0-9]+)s*(
There's no such feature today,
the CTRL+SHIFT+O == CTRL+P @ doesn't work for all languages.
As a last resort you can use the search panel - although it is not so fast an easy to use as you'd like - you can enter this regex in the search panel to find all functions:
functions([_A-Za-z0-9]+)s*(
edited Aug 17 '17 at 9:37
meJustAndrew
2,69432248
2,69432248
answered Jan 2 '17 at 8:12
PicardPicard
1,54332026
1,54332026
add a comment |
add a comment |
There is a new release that can do that!
Check here the latest release notes regarding code outline
add a comment |
There is a new release that can do that!
Check here the latest release notes regarding code outline
add a comment |
There is a new release that can do that!
Check here the latest release notes regarding code outline
There is a new release that can do that!
Check here the latest release notes regarding code outline
answered Jun 13 '18 at 8:05
fkupperfkupper
40639
40639
add a comment |
add a comment |
I have found this extention: Code Outline.
This is how it looks like:
I believe that is what you have been looking for.
add a comment |
I have found this extention: Code Outline.
This is how it looks like:
I believe that is what you have been looking for.
add a comment |
I have found this extention: Code Outline.
This is how it looks like:
I believe that is what you have been looking for.
I have found this extention: Code Outline.
This is how it looks like:
I believe that is what you have been looking for.
edited Feb 28 '18 at 9:54
answered Feb 28 '18 at 9:45
ddsultanddsultan
726814
726814
add a comment |
add a comment |
CTRL+F12 (CMD+F12 for Mac) - opens for me all methods and members in PHP class.
add a comment |
CTRL+F12 (CMD+F12 for Mac) - opens for me all methods and members in PHP class.
add a comment |
CTRL+F12 (CMD+F12 for Mac) - opens for me all methods and members in PHP class.
CTRL+F12 (CMD+F12 for Mac) - opens for me all methods and members in PHP class.
edited Aug 23 '17 at 5:33
simhumileco
6,94935151
6,94935151
answered Jun 8 '17 at 3:13
Alex MazaltovAlex Mazaltov
312
312
add a comment |
add a comment |
Open symbol by name :
CTRL+T
might be what you are looking for. Works perfectly with my TypeScript project.
add a comment |
Open symbol by name :
CTRL+T
might be what you are looking for. Works perfectly with my TypeScript project.
add a comment |
Open symbol by name :
CTRL+T
might be what you are looking for. Works perfectly with my TypeScript project.
Open symbol by name :
CTRL+T
might be what you are looking for. Works perfectly with my TypeScript project.
edited Jan 8 '18 at 13:28
wonea
2,3071464119
2,3071464119
answered Oct 25 '17 at 10:43
wodzuwodzu
1,48711831
1,48711831
add a comment |
add a comment |
ctrl+shift+o // This should work for javascript files by default
For PHP install the extension PHP SYMBOLS
FOR PYTHON install the extension PYTHON
On Reload, this will work fine
1
You could also doCtrl+P
and type@
- this lists all functions/symbols in the file. And when typing@function_name
does a fuzzy string search on the symbols.
– Roopak A Nelliat
Sep 12 '18 at 6:32
yes nice suggestion.. but you know it requires two steps, where as ctrl+shift+o is single step. :)
– Rifaideen
Sep 14 '18 at 6:39
add a comment |
ctrl+shift+o // This should work for javascript files by default
For PHP install the extension PHP SYMBOLS
FOR PYTHON install the extension PYTHON
On Reload, this will work fine
1
You could also doCtrl+P
and type@
- this lists all functions/symbols in the file. And when typing@function_name
does a fuzzy string search on the symbols.
– Roopak A Nelliat
Sep 12 '18 at 6:32
yes nice suggestion.. but you know it requires two steps, where as ctrl+shift+o is single step. :)
– Rifaideen
Sep 14 '18 at 6:39
add a comment |
ctrl+shift+o // This should work for javascript files by default
For PHP install the extension PHP SYMBOLS
FOR PYTHON install the extension PYTHON
On Reload, this will work fine
ctrl+shift+o // This should work for javascript files by default
For PHP install the extension PHP SYMBOLS
FOR PYTHON install the extension PYTHON
On Reload, this will work fine
answered Jul 26 '18 at 7:56
RifaideenRifaideen
664712
664712
1
You could also doCtrl+P
and type@
- this lists all functions/symbols in the file. And when typing@function_name
does a fuzzy string search on the symbols.
– Roopak A Nelliat
Sep 12 '18 at 6:32
yes nice suggestion.. but you know it requires two steps, where as ctrl+shift+o is single step. :)
– Rifaideen
Sep 14 '18 at 6:39
add a comment |
1
You could also doCtrl+P
and type@
- this lists all functions/symbols in the file. And when typing@function_name
does a fuzzy string search on the symbols.
– Roopak A Nelliat
Sep 12 '18 at 6:32
yes nice suggestion.. but you know it requires two steps, where as ctrl+shift+o is single step. :)
– Rifaideen
Sep 14 '18 at 6:39
1
1
You could also do
Ctrl+P
and type @
- this lists all functions/symbols in the file. And when typing @function_name
does a fuzzy string search on the symbols.– Roopak A Nelliat
Sep 12 '18 at 6:32
You could also do
Ctrl+P
and type @
- this lists all functions/symbols in the file. And when typing @function_name
does a fuzzy string search on the symbols.– Roopak A Nelliat
Sep 12 '18 at 6:32
yes nice suggestion.. but you know it requires two steps, where as ctrl+shift+o is single step. :)
– Rifaideen
Sep 14 '18 at 6:39
yes nice suggestion.. but you know it requires two steps, where as ctrl+shift+o is single step. :)
– Rifaideen
Sep 14 '18 at 6:39
add a comment |
There is a plugin called show functions which lists all the function definitions in a file. It also allows you to sort the function so can search them easily.
2
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
– Zoe
Oct 12 '18 at 15:43
add a comment |
There is a plugin called show functions which lists all the function definitions in a file. It also allows you to sort the function so can search them easily.
2
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
– Zoe
Oct 12 '18 at 15:43
add a comment |
There is a plugin called show functions which lists all the function definitions in a file. It also allows you to sort the function so can search them easily.
There is a plugin called show functions which lists all the function definitions in a file. It also allows you to sort the function so can search them easily.
edited Oct 12 '18 at 15:52
answered Oct 12 '18 at 15:40
BK0090BK0090
214
214
2
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
– Zoe
Oct 12 '18 at 15:43
add a comment |
2
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
– Zoe
Oct 12 '18 at 15:43
2
2
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
– Zoe
Oct 12 '18 at 15:43
A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.
– Zoe
Oct 12 '18 at 15:43
add a comment |
It is an extra part to the answer to this question here but I thought it might be useful. As many people mentioned, Visual Studio Code has the OUTLINE part which provides the ability to browse to different function and show them on the side.
I also wanted to add that if you check the follow cursor mark, it highlights that function name in the OUTLINE view, which is very helpful in browsing and seeing which function you are in.
add a comment |
It is an extra part to the answer to this question here but I thought it might be useful. As many people mentioned, Visual Studio Code has the OUTLINE part which provides the ability to browse to different function and show them on the side.
I also wanted to add that if you check the follow cursor mark, it highlights that function name in the OUTLINE view, which is very helpful in browsing and seeing which function you are in.
add a comment |
It is an extra part to the answer to this question here but I thought it might be useful. As many people mentioned, Visual Studio Code has the OUTLINE part which provides the ability to browse to different function and show them on the side.
I also wanted to add that if you check the follow cursor mark, it highlights that function name in the OUTLINE view, which is very helpful in browsing and seeing which function you are in.
It is an extra part to the answer to this question here but I thought it might be useful. As many people mentioned, Visual Studio Code has the OUTLINE part which provides the ability to browse to different function and show them on the side.
I also wanted to add that if you check the follow cursor mark, it highlights that function name in the OUTLINE view, which is very helpful in browsing and seeing which function you are in.
answered Dec 31 '18 at 16:52
Ahmad GhadiriAhmad Ghadiri
1266
1266
add a comment |
add a comment |
For PHP users :)
Make sure you have 'PHP Symbol' plugin then you can get all methods and class in 'OUTLINE' Sidebar's Bottom.
Press command + shift + o
OUTLINE:
@Symbol:
add a comment |
For PHP users :)
Make sure you have 'PHP Symbol' plugin then you can get all methods and class in 'OUTLINE' Sidebar's Bottom.
Press command + shift + o
OUTLINE:
@Symbol:
add a comment |
For PHP users :)
Make sure you have 'PHP Symbol' plugin then you can get all methods and class in 'OUTLINE' Sidebar's Bottom.
Press command + shift + o
OUTLINE:
@Symbol:
For PHP users :)
Make sure you have 'PHP Symbol' plugin then you can get all methods and class in 'OUTLINE' Sidebar's Bottom.
Press command + shift + o
OUTLINE:
@Symbol:
answered Feb 7 at 11:57
Neeraj SinghNeeraj Singh
3,88422631
3,88422631
add a comment |
add a comment |
Take a look at Show Functions
plugin.
It can list functions, symbols, bookmarks by configurable regular expressions. Regular expressions are a real saver, expecially when you're not using a mainstream language and when CodeOutline doesn't do the job.
It's ugly to see a split window with these functions (CodeOutline seems to be better integrated) but at least there's something to use
add a comment |
Take a look at Show Functions
plugin.
It can list functions, symbols, bookmarks by configurable regular expressions. Regular expressions are a real saver, expecially when you're not using a mainstream language and when CodeOutline doesn't do the job.
It's ugly to see a split window with these functions (CodeOutline seems to be better integrated) but at least there's something to use
add a comment |
Take a look at Show Functions
plugin.
It can list functions, symbols, bookmarks by configurable regular expressions. Regular expressions are a real saver, expecially when you're not using a mainstream language and when CodeOutline doesn't do the job.
It's ugly to see a split window with these functions (CodeOutline seems to be better integrated) but at least there's something to use
Take a look at Show Functions
plugin.
It can list functions, symbols, bookmarks by configurable regular expressions. Regular expressions are a real saver, expecially when you're not using a mainstream language and when CodeOutline doesn't do the job.
It's ugly to see a split window with these functions (CodeOutline seems to be better integrated) but at least there's something to use
answered May 17 '18 at 14:24
BenBen
2114
2114
add a comment |
add a comment |
Not a very good solution but you can search for 'def' with python, and you can quickly skip through each function/method. Hopefully will be a more graphical solution soon...
add a comment |
Not a very good solution but you can search for 'def' with python, and you can quickly skip through each function/method. Hopefully will be a more graphical solution soon...
add a comment |
Not a very good solution but you can search for 'def' with python, and you can quickly skip through each function/method. Hopefully will be a more graphical solution soon...
Not a very good solution but you can search for 'def' with python, and you can quickly skip through each function/method. Hopefully will be a more graphical solution soon...
edited Jan 8 '18 at 13:27
wonea
2,3071464119
2,3071464119
answered Aug 7 '17 at 14:53
aheiginsaheigins
84211122
84211122
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f36154283%2fmethod-list-in-visual-studio-code%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
See code.visualstudio.com/docs/editor/editingevolved
– simhumileco
Aug 22 '17 at 22:00
This missing feature is being tracked at github.com/Microsoft/vscode/issues/5605
– foz
Apr 25 '18 at 9:04
1
Released! code.visualstudio.com/updates/v1_24#_outline-view
– fkupper
Jun 13 '18 at 8:06