Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

428
Views
IntelliJ/Kotlin: What does the `^use` hint mean?

I'm using Kotlin in IntelliJ. I've written a fairly typical recursive function with a couple streams to zip up some files. I'm seeing a ^use and I don't know what IntelliJ is trying to tell me. (Hovering over such things usually teaches me something I didn't know about the language or warns me about a common mistake, but this provides no details)

Here is the screenshot of my function with an arrow pointing to the the hint.

The hint <code>^use</code> in front of a call to the file input stream copyTo extension function

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This hint marks an expression that is a return value of a lambda, also saying which function the lambda is passed to. It reads as 'returned from the lambda passed to use { ... }'.

As the last expression in each lambda is the return value, this hint helps finding which lambda the expression is actually returned from.

You can disable these hints in the IDE preferences: Editor → General → Appearance → Show parameter hints – Configure → Language: Kotlin → Show lambda return expression hints (also available from the hint's right click menu), the other kinds of inline hints are also set up there.

UPD: In IntelliJ IDEA 2019.3 and newer, these options are placed under Editor → Inlay Hints → Kotlin.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!