Code Shambles: Operate on your code like a true pirate surgeon!
Ever felt like your code file looks like Luffy's backpack—messy, chaotic, and with functions spilling out like a nakama party gone wild? Fear no more! Code Shambles is here to bring Trafalgar Law-level order to your coding chaos, folding all your functions and class methods into neat little origami cranes. 🗺️⚓ Sail smoothly through your code jungle! 🚀
And Yes, it is a One Piece reference. We all like Tra-guy!
✨ Features
- 📜 Collapse All Functions: Turn your spaghetti code into a clean sheet.
- 🔍 Highlight Functional Clutter: Tired of looking for functions? Let Function Collapser do the squinting for you.
- 🤖 Fold Like a Pro: Supports top-level functions, nested arrow functions, class methods, and everything in between.
Say goodbye to scrolling endlessly through a never-ending code scroll! ✨
💡 Usage
Access the commands via Ctrl+Shift+P
or use the keyboard shortcuts below.
Commands
- 🌀 Collapse All Top-Level Functions:
cs:collapse:functions
- 🌀 Un-collapse All Top-Level Functions:
cs:uncollapse:functions
- 🌀 Un-collapse All Import Statements:
cs:collapse:imports
- 🌀 Un-collapse All Import Statements:
cs:uncollapse:imports
Keybindings
- 🌀 Collapse All Top-Level Functions:
Ctrl+Alt+N
- 🌀 Un-Collapse All Top-Level Functions:
Ctrl+Alt+M
- 🌀 Un-Collapse All Import Statements:
Ctrl+Alt+C
- 🌀 Un-Collapse All Import Statements:
Ctrl+Alt+V
🌐 Compatibility
Currently works with TypeScript and Javascript.
If you’re using another language... well, maybe it’s time to reconsider your life choices! 😉
⚙️ Extension Settings
None... yet. But patience is a virtue, and settings are on the horizon.!
🐞 Known Issues
What issues? It’s flawless.
📝 Release Notes
v1.0.1
- 🛠️ Fixed a typo in the command (previously both collapsing and uncollapsing of import statements were
cs:collapse:imports
)
- 🛠️ Fixed an issue where a class method would not collapse, if the cursor is in that class method.
v1.0.0
v0.0.7
- 🧑💻 Now it can collapse and un-collapse import statements at the top of the file.
v0.0.6
- 🛠️ Fixed an issue where arrow functions in the last class method didn’t collapse properly.
- 🛠️ Fixed a bug causing the last class method to get selected after collapsing or un-collapsing.
v0.0.5
- 🧹 Refactored the code to improve modularity.
- 🛠️ Resolved multiple visits to functions/methods during collapsing.
- 🛠️ Fixed a bug where collapsing a class caused it to uncollapse its methods incorrectly.
- 📝 Added comments for better readability.
v0.0.4
- 🛠️ Fixed an issue where classes collapsed instead of their methods.
v0.0.3
- 🚧 Alpha version released (but not published yet).
v0.0.2
- 🧑💻 Added support for anonymous functions in TypeScript.
- 🧑🏫 Now supports TypeScript classes.
v0.0.1
- 🌟 Initial release: Collapse TypeScript functions. Hello, world!
🐞 License
This software is released under MIT License
👨💻 Developer
💬 Call me when it collapses!