Skip to content

Disable automatic imports on Paste #4325

Closed

Description

@clankill3r

Is there any way to disable automatic imports?

What I mean by this is that when for example I paste:

UI_Context ui_ctx = new UI_Context();

Then this is automaticly added:

import imgui_2026.UI.UI_Context;

First off all I already had a static import so the import is not needed at all to have things working.
Second and more important, I want to be in control of the imports being used, and this way it's easy for something to slip in by accident.

I was happy with the ctrl + . to do imports.

All my attempts so far either didn't work, or they stopped autocomplete everywhere.

Activity

  1. fbricon commented on Jan 30, 2026

    @fbricon
    Collaborator

    Try Ctrl+Shift+v when pasting

  2. fbricon commented on Jan 30, 2026

    @fbricon
    Collaborator

    Ah so Ctrl+Shift+v still organizes imports after pasting due to

    registerOrganizeImportsOnPasteCommand();

    When doing Ctrl+v, jdt.ls-pasting takes over, that you can override with the paste selector:

    Image

    In both cases, we could introduce a setting like for js and ts

    Image
  3. added this to the End February 2026 milestone on Jan 30, 2026
  4. changed the title [-]Disable automatic imports[/-] [+]Disable automatic imports on Paste[/+] on Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions