Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
56 views

I have an issue with Quarto in VS Code whith folding and outlines. Math envs have the syntax: ::: {#def-system} This is a definition ::: However, to give the enviroment a title you are suppose to use ...
Pablo's user avatar
  • 101
0 votes
0 answers
63 views

While looking at library code via SourceLink, I hit the shortcut key to collapse the code. The code collapsed as expected, and comment documentation blocks collapsed into an ellipsis on the same line ...
Frank B's user avatar
  • 89
1 vote
1 answer
295 views

When I edit large files (20k+ lines with a lot of objects) sometimes folding can break totally and fold not the lines that it should and not where it should be I attached few screenshots here for ...
AS7RID's user avatar
  • 21
0 votes
0 answers
34 views

SETUP Eclipse Version: 2024-06 (4.32.0) PHP Development Tools (PDT) 8.2.0.202311292129 PROBLEM Code folding option is only available for HTML, but not for PHP When pressing CTRL + /, the code moves ...
Yakmaia's user avatar
  • 11
0 votes
0 answers
71 views

I'm having a small problem with folding and unfolding things in VSCode shellscript code. When I write a function and add a help section to it, with a heredoc that ends in EOF, naturally - After this, ...
dxo's user avatar
  • 11
0 votes
0 answers
249 views

I'm looking for an equivalent way to create labeled code folding regions in Swift. In C# you can do this with the #region directive, which is a no-op that just creates a code folding section that you ...
laptou's user avatar
  • 7,107
0 votes
1 answer
670 views

I'm new to Python, and I'm trying to fold my code in a way that's similar to regular Visual Studio with C#. In VS, you can press Ctrl+M, Ctrl+O to fold all methods and #regions, and then press Ctrl+M, ...
eternal's user avatar
  • 141
4 votes
2 answers
6k views

not sure if this is well known, but I spent a few hours searching documentation, stack overflow and reddit and never found a clear explanation. So I am posting this here, in case some one else faces ...
learning2code's user avatar
1 vote
1 answer
224 views

In the case of if-elif-else constructs, classes, class methods, loops, etc., there is an option to collapse a code block using the arrows on the left. However, this functionality is missing for the ...
Vlad Kvochin's user avatar
1 vote
0 answers
279 views

Very basic question but one that I am struggling with and thus can use some guidance... I am working in Rstudio and modifying an existing script. It is full of foldable regions and they are really ...
Guest007's user avatar
0 votes
2 answers
102 views

I have foldl: let rec foldl f lst acc = match lst with | [] -> acc | hd::tl -> foldl f lst (f hd acc) and I have foldr: let rec foldr f lst acc = match lst with | [] -> acc | hd::tl ...
J.B's user avatar
  • 25
-1 votes
1 answer
120 views

I need to write a function twoMin: int list → int * int using foldl that returns the two smallest values (not elements) of a list. You may assume that the list contains at least two elements with ...
J.B's user avatar
  • 25
-1 votes
1 answer
43 views

I am trying to get the mean of a list by using the following helping function: let rec foldl f l b = match l with | [] -> b | x :: l -> foldl f l (f x b);; let avg l = foldl (fun x acc ->...
J.B's user avatar
  • 25
2 votes
0 answers
105 views

I have this in my .vimrc autocmd FileType python setlocal foldmethod=indent so that I can use zr zR zm zM to see different levels of my Python files. The only thing is when I open a Python script, it'...
puddles's user avatar
  • 113
0 votes
1 answer
172 views

Java editor folding preferences only have the following: Comments, Header Comments, Inner Types, Members, Imports However, I want to fold some arbitrary part of my code. I tried enable folding of ...
laurabaltazar's user avatar
0 votes
0 answers
93 views

When manual folding is active, I fold lines 21-23 in the following code, 19 while (fgets(line, LINESIZE, fp)) { 20 line[strlen(line)-1] = '\0'; 21 if (regexec(&...
user avatar
1 vote
1 answer
284 views

Assume we have a folded region, let's say of 50 rows. Let's call it "TheRegion". After TheRegion we've got a line. Let's call it "TheLine". Now I want to move TheLine before ...
Voice in the Desert's user avatar
1 vote
0 answers
76 views

I Have a multiple if else statements under another if else statements and I want to be able to fold all child statements under certain parent without have to fold each one separately cause its like ...
Ostoura's user avatar
  • 2,602
1 vote
1 answer
700 views

I am trying to edit Razor pages (.cshtml) in VS Code for a .NET Core project. When I open the file it chooses the ASP.NET Razor (aspnetcorerazor) language mode. It does syntax highlighting perfectly, ...
Kahan Bhalani's user avatar
0 votes
0 answers
121 views

I want to format this: # 1 ===== tibble() ## 1.1 ==== tibble() ### 1.1.1 ==== tibble() # 2 ===== tibble() ## 2.1 ==== tibble() ### 2.1.1 ==== tibble() If I collapse # 1 and # 2, I would like to get: #...
Victor Nielsen's user avatar
3 votes
1 answer
851 views

The problem is Scintilla control does the folding automatically, which means the folding doesn't work if you do your own lexer. I'm using this to configure the control if you want to take a look at ...
Filipe's user avatar
  • 158
1 vote
0 answers
321 views

When I was using Eclipse 2018-12 (Java 8) I could use Coffee-Bytes plugin for Code Folding. Coffee-Bytes plugin is rally awesome, but recently I have found that I can use Eclipse 2022 based on JDK 11 (...
Arash Hashemi's user avatar
1 vote
1 answer
217 views

In other editors, I use code folding to collapse all of the functions in a file, but can't seem to get this option to show in PyCharm Education edition (2022.2). It should show under the "Code&...
ryanwebjackson's user avatar
0 votes
2 answers
136 views

I'm looking for a way to fold all results in a VSCode search editor. (It's clear how to do this in the search explorer.) I can easily fold individual results with cmd+opt+[ but I want to fold all of ...
Jamie Orchard-Hays's user avatar
-1 votes
2 answers
444 views

I have an SQLite database of 5GB which gets updated few times a day and is used to refresh a PowerBI dashboard. While below 1GB I could refresh the dashboard in under a minute, but now takes around 20 ...
ftani's user avatar
  • 188
1 vote
0 answers
55 views

I would like to find a way to get the folded regions in the active editor using a custom extension. I have done a lot of researches, but I didn't find anything on this subject. Also, I tried to query ...
Axel's user avatar
  • 506
0 votes
0 answers
906 views

I'm not sure why this is not working. I've installed a fresh version of windows and freshly installed visual studio. I can no longer collapse if/else/while statements but I can collapse functions. I'...
kevv12's user avatar
  • 1
1 vote
0 answers
442 views

UPDATE: The breaking of the custom code folding extension appears to be due to it conflicting with the VSCode C# extension. If the C# extension is disabled the custom folding works as expected, but ...
ethanw.work's user avatar
2 votes
1 answer
931 views

I searched several hours already, but I couldn't find a way to prevent VS Code from putting the little folding icon in the gutter for my // style comments in my javascript and typescript files. How ...
Axel's user avatar
  • 506
0 votes
1 answer
249 views

Ok - we've all all hit the wall with something pitifully stupid. Today was my turn. I couldn't fold (collapse) a comment block in VSCode. Searched StackOverflow and others for a solution and came up ...
David A. Steinberg's user avatar
6 votes
3 answers
5k views

Is there a way to use code sections similar to RStudio's # --- or MATLAB's %% in VSCode? I would like to divide my code to sections and selectively run those sections. Is that possible? Thanks, Yasir
duodenum's user avatar
3 votes
2 answers
4k views

I want to mark some particular functions to fold by default. Something like: # PyFoldDefault def my_func() # PyFoldDefault - will hide a function. ... Similar behavior there in PyCharm, for ...
Давид Шико's user avatar
1 vote
1 answer
722 views

I am sorry about cant upload IMG because of sign up first. so I got the link https://getbootstrap.com/docs/3.3/javascript/#collapse like this function, I want to make a widget in normal times, only ...
idkanything's user avatar
2 votes
0 answers
50 views

Currently Using VS Code with C++. I have this code here: Test::Test() : varA{0}, varB{1} { } that I want to collapse into the code like so: Test::Test() But it only lets me collapse the code if ...
spaL's user avatar
  • 718
1 vote
1 answer
677 views

For a custom language, I what the same folding behavior of "Plain Text", meaning leaving out blank lines: I expected Plain Text folding behavior as default, but as soon as I switch to my ...
Martin's user avatar
  • 11
0 votes
1 answer
146 views

The very first answer of this wonderful post shows a straight forward javascript that will to insert a toggle to hide all code in a bookdown doc. Although I have tried many different variations and ...
NewGraph's user avatar
3 votes
2 answers
144 views

I'm currently trying to learn folding. But instead of using predefined functions I want to use my own. So I want to double all vowels in a String. doubleVowels :: String -> String My attempt is (...
Sorun's user avatar
  • 143
0 votes
2 answers
1k views

Code folding in VScode doesn't seem as good as IntelliJ's. eg. code block def g(a): print(a) print(a) print(a) print(a) print(a) Or, for (...),{...},[...] (indentation isn't ...
Cyber Avater's user avatar
  • 2,116
1 vote
1 answer
1k views

I'm using vim 8.2. In my .vimrc file I was able to change fold with fillchars successfully: set foldmethod=indent set fillchars=fold:\ But it does not work when I tried with foldopen and foldclose ...
Luiz Guilherme's user avatar
2 votes
1 answer
2k views

In visual-studio-code I can have a text file with folding based on tabs. I find this a light way to keep notes. Any ideas if there's a way to show those fold levels in the outline window. This would ...
Paul Rooney's user avatar
0 votes
1 answer
79 views

I need to set on one single key (F1 specifically) both the collapse and the expand of the current block, in VS Pro 2019. I thought I did it in the past, but I seem not to find it again anymore. Simply ...
o0'.'s user avatar
  • 11.9k
5 votes
3 answers
5k views

When I copy folded code it just pastes the beginning line (that's visible). For example if I copy this code when it's folded: Expanded( flex: 2, child: Image( image: AssetImage('images/...
Logical-Direction's user avatar
0 votes
1 answer
107 views

In some my code i have a lot of variables. So to make it more readable i want to be able to fold them away so instead of this: public class BIhcsAhuStartSeq_v2 { int counterVal_1 =0; int ...
mittens13's user avatar
1 vote
0 answers
138 views

In the gif I've attached you can see that if I fold on line 136 it keeps the blank line and you still see the next aligned section. If I fold at line 146, it swallows the next section even though they ...
kidbrax's user avatar
  • 2,434
1 vote
1 answer
3k views

For some reason folding really won't work in neovim for me. I've tried a few different folding plugins and they all just say 'E490: No fold found' when I try to fold a code block. Am I using it ...
Inigo Val's user avatar
1 vote
1 answer
790 views

One feature that I miss from Visual Studio (and which I've never seen anywhere else) is "collapse methods" or something like that. In essence, you collapse method (function) bodies and ONLY ...
Vilx-'s user avatar
  • 107k
2 votes
0 answers
121 views

When editing *.twig files in mac osx Eclipse both syntax highlighting and folding are working fine on their own. Am I doing something wrong or is it a bug/feature? When both are enabled, the syntax ...
Antti A's user avatar
  • 540
0 votes
1 answer
256 views

We can see the folding in this Diff/Merge screen by the + signs: That used to not happen and I want to permanently disable the folding. How can I do that? JetBrains docs https://www.jetbrains.com/...
WestCoastProjects's user avatar
2 votes
1 answer
3k views

I'm trying to make a code folding for the "for loop" and for "if statement " in flutter with vs code but i can't .however the code folding works well if i try to fold the hole ...
Khalil LAABOUDI's user avatar
0 votes
1 answer
448 views

When editing folded Python code with IdeaVim, if the caret/cursor touches a folded zone represented by ... (or region_name if using a #region tag), the folded section immediately unfolds. I'd like to ...
jwav's user avatar
  • 625

1
2 3 4 5
10