code-folding

Does Xcode support regions?

删除回忆录丶 提交于 2019-11-26 21:06:38
问题 Does Xcode support anything akin to Visual Studio style #region directives for arbitrary code folding? 回答1: No, you can only fold code on various defined scoping levels in Xcode. You can use little tricks to make navigating via the function menu easier, though. #pragma mark Allows you to create a grouping where the label following mark will show up in the function menu. If the label is a hyphen, a separator is inserted into the function menu. Also, the following labels in comments will show

How to achieve code folding effects in Emacs?

坚强是说给别人听的谎言 提交于 2019-11-26 11:44:54
问题 Whats the best way to achieve something like code folding, or the type of cycling that org-mode uses. What would be the best solution in elisp to create this type of behavior? EDIT: I\'m sorry I was not clear. I want to program something in elisp that does things very similar to code folding, or actually most like org-mode with the hierarchy that can be expanded. I am wondering the best way to achieve this affect. I think I have heard emacs overlays are a good solution, but I dont know. As