ptweb | browser music player and visualizer for songs | Audio Utils library
kandi X-RAY | ptweb Summary
kandi X-RAY | ptweb Summary
An in-browser music player and visualizer for songs made in pxtone!
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ptweb
ptweb Key Features
ptweb Examples and Code Snippets
Community Discussions
Trending Discussions on ptweb
QUESTION
I usually use the CTRL+M CTRL+O
to collapse sections or regions in my cs
files in Visual Studio 2017. This keyboard shortcut is also working nicely in my JSX
files. However, it's NOT working in JS
files.
Interestingly, VS 2017 is able to see and understand functions, even sections within functions such as if blocks, etc. As you can see in image below, it also offers me those +/- icons to collapse them. Using the mouse, I can collapse them but my keyboard shortcut is not working.
How do I get VS 2017 to collapse everything to definitions in JS
files using keyboard shortcuts?
ANSWER
Answered 2017-Jul-19 at 12:55The cause of this behaviour seems to be the use of the arrow-function - if you change that to a regular function-definition, the section will collapse using Ctrl+M Ctrl+O
('Collapse to definitions') like you expect it to.
This will, however, cause you to lose the perks of the arrow-function, which is less than optimal, especially when used in conjunction with promises.
What exactly is causing this, however, I haven't been able to discern, and all attempts of fixing it have so far proven futile.
Here's an example of how your outline should work as expected:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ptweb
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page