display full phth of file in netbeanse IDE - netbeans

I want to display full file path in my netbeanse IDE in toolbar I have seen this in PC I tried a lot but is is not displaying
I don't want to just display I want to copy direct file path from there
Uploading a snap for understanding what I want
Thanks in advance
Netbeanse giving this functionality I know but forgot that how to enable this

Alt + Shift + L will copy the path of the currently active file to clipboard. You can then paste this in any where else. I use this regularly and know it works.
If you want to show the path of the file in the toolbar location like in the image you have uploaded above, you may have to write your own plugin. Here are a couple of plugins that do this already.
path tools
show path in title

Related

How to include image as Markdown in Visual Studio Code?

How can I include an image from the same destination folder as of the document as Markdown in Visual Studio Code?
I tried this, but it didn't work:
![Getting Started](./2/to/img.jpg)
If the image is in the same directory as the Markdown file, you can use either:
![Getting Started](./img.jpg)
![Getting Started](img.jpg)
For a workspace layout like:
docs/
images/
img.jpg
README.md
In README.md, this would be either:
![Getting Started](./images/img.jpg)
![Getting Started](images/img.jpg)
Question is old, however, I found a very nice plugin within visual studio code
Paste Image
As the plugin suggests you can paste the image onto markdown file by pressing ctrl(cmd) + Alt +V.
Or
Open command palate pressing ctrl(cmd) + shift + p and select paste image. In the background the plugin creates a image file with date/time and puts reference on the markdown.
If you are here because the images would not render in vscode preview, here's my solution:
<img src="./2/to/img.jpg" alt="Getting started" />
Markdown accepts HTML syntax, so this just works also.
Instead of this Process you can just drag the image from the file and to include in the Readme.md just click Shift + release It Will be generated Automatically.
Well if the pic is from the internet
I think this code will work ![Getting Started](link to access the image)
If the image isn't rendering, in VSC it needs an extra line after the line where the image is instantiated, in other words it can't be an end of file. I do not see this requirement in other markdown editors.
Pasting images seems to be currently in experimental phase on VSCode.
According to this, you can set the following configuration options on your personal settings to enable it.
"markdown.experimental.editor.pasteLinks.enabled": true,
"editor.experimental.pasteActions.enabled": true
My test run of it worked perfectly pasting a screen capture, but it seems there's currently no setings as on where the file will be saved or its name. It defaults to saving on the current folder with "image.png" name.

What is shourtcut for files in Netbeans

I realy dont know how to ask this one, so I will try to describe it.
I am pretty sure that there is a shortcut in NetBeans for files.
And when I want to get path to web/img/sample/fileWithStrangeName I dont want to type it and make some mistake.
What is shortcut in netbeans for that kind of navigation?
As you can see from the http://wiki.netbeans.org/Keyboard_Shortcuts there is no direct way to do this using a keyboard shortcut for any version until now.
What i do is right clicking on a file and then select properties. And then copy the value of the All Files property.
Another way is to use the plugin Explore from here, that opens the file in its location. And then copy the path from that window.

how can i get the path of a file in the project explorer of exlipse

i will build an eclipse rcp. in this context i will add some some views into this rcp. the views will be the project explorer view, editor like the same with the eclipse ide. and there will be some other views corresponding to my project.beside this i also have a databasetable, where the files are saved with their paths. so the thing is: if the user clicks to a file, then i will get the path of the file or save it into a variable so that i can compare the path of the selected file with the existing files of the databasetable... so their will not be another view, who will use this i hope i could explain my question better
My questions is.in the project explorer view of the eclipse ide.if you click on a file, then i would like to get the path of this file.does anyone know how i can get the path of a file in the project exlporer. or is this path saved anywhere, so i can get the path of the file from this place.
i will try to explain my qustion with this example:
if i click on the File: abc.java
and the path of the abc.java File in the project explorer is for example: Example/src/abc.java
My question is:
where can i find the path of the File abc.java or is this path saved anywhere?
or better:
if i click on the abc.java File
how can i get the path of this abc.java, to use this path for other topics.
thank you in advance
You use the ISelectionService to get the current selection:
ISelectionService service = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService();
ISelection selection = service.getSelection();
if (selection instanceof IStructuredSelection)
{
Object selected = ((IStructuredSelection)selection).getFirstElement();
IFile file = (IFile)Platform.getAdapterManager().getAdapter(selected, IFile.class);
.... use file
}
The current selection will be in whatever view or editor is currently active. You can also ask the selection service for the current selection in a particular view.
Ultimately, the answer is that you need to get to the selection as an IFile. Then you can just ask the IFile for its path using getFullPath(). See http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Forg%2Feclipse%2Fcore%2Fresources%2FIFile.html
But you need to provide more context for this question. Do you have a popup menu action that's being passed the selection? Are you registering a selection listener from some other view? Or something else entirely? Basically, you need to tell us what context you're in and what data you have available.
i will build an eclipse rcp.
in this context i will add some some views into this rcp. the views will be the project explorer view, editor like the same with the eclipse ide. and there will be some other views corresponding to my project.beside this i also have a databasetable, where the files are saved with their paths. so the thing is: if the user clicks to a file, then i will get the path of the file or save it into a variable so that i can compare the path of the selected file with the existing files of the databasetable...
so their will not be another view, who will use this
i hope i could explain my questio better
thanks

Is there a way to make the open tabs in Eclipse/Aptana show both the directory and file name?

In Eclipse / Aptana Studio is there a setting that allows the tab to show both the directory and file name (instead of just the file name) so I can see:
blog/views.py
instead of just
views
If you hover the pointer over the file’s tab, Eclipse will display a tooltip showing the full path and filename.
Normally when you open two files with the same name, it will display filename and the directory. It doesn't look like there is a way to do this by default.
The closest thing I found was showing the file extension in python under Preferences/PyDev/Editor/"Editor caption/icon"

Displaying full path of filename in tabs ~ Netbeans 6.8

I can't seem to find a way in the options to display the full path of the file at the title of the tab. I can hover over it to see it, but it would be nice to see it at a glance.
There is a SU question about it also, https://superuser.com/questions/88637/netbeans-how-to-view-file-full-path-in-window-title-or-somewhere-else
Does anyone have a solution for this to actually display it? I can see there is a custom .jar for it in the RC2 Netbeans, but that's probably way old now.
PS, I should mention that a path relative to the project would be ideal, as well as a full path. Either really :)
NetBeans 8.0.2
Tools > Options > Appearance > Document Tabs > Show full file path
The full path will appear only for the active tab (under the tabs), but you can also check "Show parent folder name in tab title" if you want to see the parent folder for every tab:
Try to use following netbeans plugin.
In Netbeans 6.9.1 (at least) you can open the Window/Properties window and pin it under the editor; this will contain the full path in the "All Files" property which is then visible at all times and always contains the current editor file's properties.
Starting from NetBeans 6.9 you can use the NetBeans extention "show path in title":
http://plugins.netbeans.org/plugin/42000/show-path-in-title
it's very helpful :D
You can also 'Select in --> [Project|Files|Favorites]. This opens the exposes the node for the file in the Projects, Files or Favorites explorer.
To do this, right click in the text editor for the file you are interested in; the 'Select in' item is near the bottom of the menu that appears.
Try using CTRL+TAB, you can find the path in status bar. This is not complete solution for your question but using keyboard (without using mouse atleast) you can find the path of the open file(s).