Is there way to mark method/property as ignored by...
# announcements
t
Is there way to mark method/property as ignored by IDEA autocomplete?
Copy code
// must be invisible in autocomplete
fun first() {}

fun second() {}
s
…why
if it’s not supposed to be used outside of that file, just make it private? if you don’t want to expose it outside of the module, use
internal
if you’re deprecating the function, mark it
@Deprecated
t
…why
My case - public external api, which wrapped by optimized wrapper
Copy code
external fun do(
    p1: Any,
    p2: Any,
    p3: Any,
    p4: Any
)

fun dodo(
    p1: Any = P1_DEFAULT,
    p2: Any = P2_DEFAULT,
    p3: Any = P3_DEFAULT,
    p4: Any = P4_DEFAULT
)
a
Hiding it from the autocomplete doesn't sound like a solution to your problem. Even if you hide it from one IDE (IntelliJ) someone may have it enabled on another (or just call it directly). The standard visibility modifiers should fully hide the method from external users (you probably want
internal
)