In the database, once a folder is created, the data source cannot move to the folder.

已回答

Version information:
IntelliJ IDEA 2025.3.1
Build #JBC-253.29346.138, built on December 18, 2025
Built from the branch: 253.29346
Source revision: 9478cb03fae44
Licensed to leo tita
Subscription is active until January 22, 2026.
Evaluation purpose only.
Runtime version: 21.0.9+1-b1163.86 amd64 (JCEF 137.0.17)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
Controller in Remote Development
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 16
Registry:
 ide.balloon.shadow.size=0
 ide.browser.jcef.out-of-process.enabled=false
 documentation.show.toolbar=true
 ide.experimental.ui=true
Non-Bundled Plugins:
 cn.yiiguxing.plugin.translate (3.8.1)
 

0

Hello 2562774463 

As I understand, you are experiencing difficulty moving a data source into a folder within the Database tool window after that folder has been created. Is that correct?

You can move the data source into a folder through different options:

  1. Using the Context Menu (Most Reliable). This is the most direct way to move a data source if dragging is not working as expected. Right-click the data source you want to move. Select Move | To Folder... (or press F6). In the pop-up that appears, select the existing folder name.
  2. Drag the data source and drop it directly onto the folder's name. Note: Ensure you drop it on the folder icon/name, not just between items, as that might simply reorder them.
  3. If you accidentally put the data source in a folder and want to move it back out, Right-click the data source inside the folder. Select Move | To Top Level.
  4. Using the Keyboard Shortcut: Selecting the data source and pressing F6 is the quickest way to bring up the "Move to Folder" menu.

If you still cannot move the data source, check if the data source is "Global" versus "Project-level," though typically both can be organized into folders within the tool window.

If this is not the exact issue you're facing, please let me know exactly what happens when trying these steps. If you see an error in the UI, take a screenshot and share it here. Additionally, it would be very helpful if you could share a screencast of the problem for further investigation.

0

@... I just tested the behavior in the latest version 2025.3.1 on Windows 10:

  1. Created a new folder in the Database view
  2. Created a new data source
  3. Dragged (or Alt-dragged) the data source into the folder
  4. The data source was moved to the new folder as expected.

⚠️In case you have enabled the option to “Drag-and-drop with Alt pressed only” under File | Settings | Appearance & Behavior | Appearance, make sure you are pressing and holding the Alt key before dragging the data source.

0

请先登录再写评论。