hot tip for editing `.def` files in IntelliJ: add...
# kotlin-native
a
hot tip for editing
.def
files in IntelliJ: add
#language=c
before the
---
and IntelliJ will recognise it as C, and help out with highlighting, formatting, and auto completion
👍🏾 1
🔥 12
👍 3
🙏 3
j
That should be added to all the examples like this one: https://kotlinlang.org/docs/native-c-interop.html#add-custom-declarations
n
Tried the trick and found it works with IntelliJ Community edition 😄 .
j
Unfortunately it doesn't seem to work for Objective-C with
#language=Objective-C
.
#language=C
is still better than without though.
s
We did not know about this feature either :D