How to add comment autocomplete in Xcode (Swift)?

How to add text for autofill, as shown below, the part "Tells the element to activate itself ...",

enter image description here

This is what I have

enter image description here

But the "This is a test" part is not displayed when autocomplete,

enter image description here

Please do not make links to other posts that tell you how to write comments so that they appear in the window that appears with Option + Click, I know how to do this. My question is about comments appearing in the autocomplete window.

+4
source share
4 answers

What you are trying to accomplish is, unfortunately, no longer possible.

, popocomplete popover , doc-, Apple.

: fooobar.com/questions/844300/...

+1

, xcode 9.3 - 9.4 beta swift 4.1

/// this is printName func and will print your name
func printName(name: String){
   print("my name is \(name)")
}

: enter image description here

+1

, , . , , - : (

0
    /**
     Put comments just above the funcion using the Markdown format like this
    */
    func exampleFunction() {
        print("The comments above will show up in the auto complete popover.")
    }

Popover

@Hacking With Swift

0

Source: https://habr.com/ru/post/1660350/


All Articles