Because you’ve seen that long string enough already.
Sufficient docstrings can become long, but long docstrings can adversely affect readability and navigability of code.
What if long strings in your code could be automatically set up for folding?
-
Some Java (using >= 8 here)
-
Native Image (implies appropriate GraalVM >= 19)
-
Clojure 1.9 and its clj tool
-
Atom or VSCode
-
Clone this repository and cd to the clone
-
Ensure native-image is in your PATH -OR-
Set GRAALVM_HOME appropriately (e.g. on Arch Linux this might be /usr/lib/jvm/java-8-graal) -
Build the helper:
clj -A:native-image
. After some time, this should produce a file named "abridge" in the current directory. -
Examine the atom / vscode subdirectory and follow the contained instructions for getting the Atom plugin / VSCode extension to work.
See the adorn repository.