Recently, I have updated my Xcode from version 8 to version 9. but now I face a weird issue and that is code folding ribbon. New version (9) doesn't having such thing in it. After research a lot I find out the way of folding the code but still it works only for methods(that is press & hold ⌘ key + hover mouse over the opening or closing of methods braces +single tap popup + fold). but I need to fold every code block that inside the open '{' and close '}' braces i.e. if, else ,loops, objective c blocks class etc.
How to fold and unfold a if condition, loops, any other code blocks within "{ code }" other than Methods body in XCode 9?
592 Views Asked by Ravi Raja Jangid At
1
There are 1 best solutions below
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in CODE-FOLDING
- Why don't the match/case code blocks collapse in PyCharm?
- How to enable code folding for bookdown::bs4_book
- How to control code folding in VSCode for a custom language?
- Neovim: fold code with `foldmethod=syntax` or `foldmethod=expr` depending on Tree-sitter
- VSCode keeps resetting my code folds whenever I sync changes
- How can I get custom code-folding in eclipse?
- VS Code CSS class folding keeps folding not properly
- possible code folding options/tweaking for html output of Rmarkdown
- how to turn on CodeFolding for a given jupyter notebook
- Button to hide/fold code in revealjs Quarto
- What is the key or command to fold siblings' code in GoLand?
- Preprocessor directives are not getting collapsed when I fold a function with non-indented pragmas in VSCode
- What is this arrow in the code editor's gutter that allows collapsing code blocks called? How can I collapse arbitrary blocks?
- Java, Code Folding using Coffee Bytes for Eclipse 2022 and higher versions
- I don't have the option to fold code anymore in vscode in python
Related Questions in XCODE9.1
- Could not load the xxx image referenced from a nib in the bundle with identifier xxx
- Framework not found MDFInternationalization for architecture x86_64
- How to create Heroku Worker process with Vapor 3 / Swift 4.1.2
- iOS Device is not Connecting to Internet in Xcode 9.1
- How to read from keyboard in Swift 4.1.2?
- Xcode Auto suggestion and Indexing Issue
- UIImagePickerController shows album listing rows with gray background
- Xcode not running on mac os sierra high
- After requesting Paid Application Contract and having it in the effect, Builds not visible on iTunesConnect
- Xcode project git repo contains changes of another git repo in commit dialog
- Xcode 9 : Command failed due to signal: Abort trap: 6
- Navigation bar item automatically changes its height and position in storyboard
- Creating Universal Fat Framework lipo: can't create temporary output file
- NSDecimalNumber does not display values in console
- How to always visible horizontal scrollbar of NSTableview in objective c programmatically?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I understand you want to fold the
{...}clauses in Objective-C, but Xcode 9.2 does not do that.Code folding has undergone some evolution in Xcode 9. Apple completely rewrote the editor in Xcode 9 and code folding was largely broken in Xcode 9.0. As of Xcode 9.2 (and Xcode 9.3 beta), it supports folding of entire methods, but does not support code folding of individual Objective-C
{...}blocks (e.g.if,while, etc.). For Objective-C, Xcode only does code folding at the method-level.Xcode does support folding of
{...}blocks in Swift code, but not in Objective-C.FYI, a less cumbersome approach for code folding is to use the keyboard shortcut ⌥+⌘+←.