简体   繁体   中英

Netbeans - how do I find the path to a file within this IDE?

I want to be able to right click an item within the 'Projects' or 'Files' window, and either have an 'open in file system' option, or 'copy absolute path to this file'.

Is there a plugin or a hidden option within Netbeans that will allow me to achieve this?

I just need an easier way to get to the folder within Windows Explorer without having to spend the time navigating there.

I'm open to making a small plugin myself if it'll make it happen?

With Netbeans 8 you can use:

Alt+Shift+L

It's defined under Options->Keymap as Copy File Path(s)

Somewhat related : netbeans - how to view file full path in window title (or somewhere else)?
You can use either of following :

  1. Use Alt+Shift+O to open files by name (which shows the path and the project)
  2. Hit Ctrl+Shift+1 while in the editor to highlight the file in the Projects View

我使用这个插件,可以将文件的完整路径复制到剪贴板 - https://github.com/kinkadzs/QuickOpener-NetBeans

There is a community contributed plugin on NetBeans bug-tracking system that can implement the feature. I have verified that the plugin works well with NetBeans 6.9.1. Once installed, you could copy the path of a file (or files under a folder node) via Edit/Copy Path menu.

Plugin "Path Tools" @ plugins.netbeans.org

The information you search can be accessed trough the file properties.

In the Projects window, right click on a file, select 'Properties', the file path is under the 'All Files' line.

You can also press Alt-Shift-O while the file is selected in the Projects view or the file you're editing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM