About 1,400,000 results
Open links in new tab
  1. python - Collapse Region VSCode - Stack Overflow

    Dec 22, 2018 · I want to fold the following lines of code in VSCode. x = np.linspace(0, 20, 100) plt.plot(x, np.sin(x)) plt.show() How do I do this? ctrl + shift + [only collapses functions.

  2. Using Regions in VS Code to Organize Your Code

    "Regions" allow developers to organize and collapse sections of their code. This feature can be helpful for managing large files and improving code readability. This article will explore how to …

  3. VS Code define a #region - DEV Community

    May 13, 2020 · Recently I stumbled upon the #region keyword. Using this you are able to wrap a section of code that will be collapsed together. This makes organising code a lot easier and …

  4. Python in Visual Studio Code

    Working with Python in Visual Studio Code, using the Microsoft Python extension, is simple, fun, and productive. The extension makes VS Code an excellent Python editor, and works on any …

  5. How to expand and collapse source code sections in Visual Studio Code

    This tutorial shows source code sections folded and unfolded all in Visual Studio code with shortcut commands. There are below shortcut commands to do it. You can still update the …

  6. How do I fold/collapse/hide sections of code in Visual Studio Code?

    As of Visual Studio Code version 1.12.0, April 2017, see Basic Editing > Folding section in the docs. The default keys are: Fold All: CTRL + K, CTRL + 0 (zero) Fold Level [n]: CTRL + K, …

  7. Dividing Python module into multiple regions - Stack Overflow

    Nov 25, 2011 · With VS Code you can simply create regions like this and even add names for the regions: #region some name #Some very long code #endregion It can be then folded into the …

  8. python - How to run a few selected lines of code in vscode?

    Dec 21, 2019 · Select one or more lines, then press Shift+Enter or right-click and select Run Selection/Line in Python Terminal. This command is convenient for testing just a part of a file. …

  9. How to organize Python code into collapsable / expandable …

    Jul 11, 2019 · A “code cell” is a block of lines to be executed all at once in the integrated Python console. You can define cells simply by adding inline comments #%% to your regular Python …

  10. How to seperate code blocks in python using visual studio code?

    Jul 7, 2020 · Functions are a good way of encapsulating blocks of code that you want to run repeatedly or in a specific context. For your application, you could do: # do first job when …

Refresh