简体   繁体   中英

Custom code folding for bash scripts in intellij Idea

Was hoping there was a way to collapse long lines of code in idea while in a bash script. As i have a base64 image that i write to a file, as well as some other text that gets written for set up, and it would be lovely if there was a way to collapse it. Ive tried #<editor-fold desc="image"> but that doesnt seem to work. On Mac

You can simply select any block in a file and use Fold Selection (Ctrl-. in the default keymap). IntelliJ IDEA will remember the folding region and its status even if you restart it.

As per yole's answer above, i found that the selection for collapsing in macOS is command . and it does indeed keep the collapse for later. Thanks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM