Inside Body Data of HTTP Sampler or JSR223 Sampler (or other Sampler )
I can Right click and get the following:
Copy/Paste/Cut/... functions work but Folding options seems to do nothing and irrelevant in that context
What folding is executing in this context? is it a specific feature for specific sampler?
I checked with code/XML/JSON and there's no impact on the text in field.
Code folding is a feature of some text editors and IDEs that allow some text to be temporarily hidden or "collapsed" in order to hide detail.
EDIT
I found I can disable it by changing in jmeter.properties:
jsyntaxtextarea.codefolding=false
This feature can hide anything that represents a "block" and is useful when you have a large lump of code, including comments, function definitions, possibly lengthy array definitions, but want to concentrate on main script flow instead. Anything that can be collapsed can be seeing by "minus in square" symbol and anything that can be expanded has an opposite "plus in square" symbol
. You can expand or collapse using right-click menu items or by clicking that symbol.
Here's a primitive example when this can be useful.
Without folds:
As you can tell, I can't even see any runnable code without scrolling. But the way it's displayed below, I can tell what script is actually doing (which, btw, exposes one problem right away), and expand relevant parts to see more details if needed: