I want to change the font size of the sub-sub-menus and file explorer in Netbeans - netbeans

The sub-menus font size can be edited through the config file but the the sub-menu elements that expand into other menus are not affected by this. The config file also does not affect the file explorer.
The sub-menu example
The file explorer example

Related

how to change DVT eclipse menu font-size

I need to change DVT eclipse menu size. also in properties view and Project Explorer.
High DPI make them larger than the code font size.
Although this soultion did work it was complicated and change only the Project Explorer (without Menu and Project)
DVT Version - dvt_eclipse_20.1.37-e46
As mentioned in DVT "Themes" documentation page.
To change the fonts, please go to Window > Preferences > DVT > Themes.
You will find there the option to change both the Editor Font and the UI Font (the second one is what you are looking for)

Edit SVG in Eclipse

I want to edit SVG files in Eclipse. I don't know why it doesn't work, but Eclipse opens Sublime when I double click an SVG file. I tried to install the Docfacto plugin, but Eclipse stalls when I open or create an SVG file.
I remember that elsewhere it has worked. I don't need a graphical editor, just something compareble to XML or HTML, so with color coding and maybe matching tags.
How can I open and edit SVG files in Eclipse?
Go to Window->Preferences
Select General->Editors->File Associations
Look for *.svg in the top list.
You should be able to modify the default editor(s) in the bottom pane. Mine is set to "XML Editor".
It can be a little tricky if you don't know:
first define svg as an xml content type:
Preferences > General > Content Types
Select XML in the upper right box
Click the Add... button next to the bottom right box
Add *.svg and click OK
Then do what #Paul LeBeau proposed:
Preferences > General > Editors > File Associations
Select *.svg or add it if it is not yet in the list
Mark XML Editor as default in the bottom box
Apply and Close
Finally open a fresh svg file to test the default file association, if you open the same file as before eclipse will remember the previous (text) editor and you will see no syntax colouring. Or right click on a file and choose Open With > XML Editor to test if the colour coding works.

Matlab Current Folder Tab automatically reflect open file

I would like the current folder tab to automatically update whenever I open a new .m file in the editor. So the current folder tab will always be open to the folder of the file being displayed in the editor. Is this supported in Matlab? I know Visual Studio has a feature like this.
MATLAB doesn't do that. Perhaps this might be close enough for you though: if you enable the Document Bar in the editor (if it's hidden, go Desktop menu->Document Bar->Bar Position->Select a Position). Now open a file in the editor. If you right-click on its element in the Document Bar, there's an option to change the current folder to the location of the file. So not automatic, but only one click away.

How to set default editor tab in Eclipse?

I'm using the HTML editor resp. the Structured Text Editor in Eclipse. It always opens in the tab Visual/Source:
Is it possible to tell Eclipse it should always open this editor in the Source tab?
You seem to use a plugin which associates with HTML files. For example Eclipse normally loads XML files for the first time with Design tab, and once you switch to source tab, it remembers the next time to open any document associated with XML Editor in Source tab. I don't know remembering is up to Eclipse or up to the plugin associated with the file, but a quick workaround would be:
to right click on the HTML file in package explorer > Open With > choose another editor (e.g. text editor). This only associates with current file. If you want to change file association for all HTMLs:
goto Preferences (under menu Window) > General > Editor > File Associations and change HTML file association there.
In Eclipse goto Windows-->Preferences-->Type Editors change the associated editors for File Types after that click on OK
You didn't say what version of Eclipse you're using. My HTML / Structured Text editors didn't have the tabs the same as yours. I'm using 3.4.2.
You can extend that editor by writing your own plug-in for Eclipse. Outside of the 'create a plug-in project' stuff, start by finding the extension points for the target editor. Then your plug-in can just register as an extension and add a new property instead of writing a whole editor. The property should show up on a preference page and then your code can take care of switching the active view of the editor to the 'Source' tab based on that property.
Right click the file and then "open with" and open it in another HTML or texteditor.
And then map this editor as the default editor for this filetype by right clicking the document and setting the file extension.
I always do this to get rid of the memory greedy WYSIWYG editors.

Eclipse: Get location of the current file?

If I've got a file open in Eclipse, how can I figure out where it is on the filesystem?
For example, in Vim I would use :pwd.
Use the Eclipse menu:
File->Properties
or the shortcut:
Alt-Enter
You should be able to see the Location associated with the Resource
Just hit Alt-Enter.
The other solution ("File-->Properties" or "Alt+Enter") didn't work for me.
I use:
Right Click (in current editor) --> Show In (shortcut: Alt+Shift+W) --> Project Explorer
This shows in Project Explorer the location of the file. If the file is a class in a referenced library, the dependency tree is automatically opened.
What you're looking for is the 'Properties' dialogue for the current file. This can be activated in two ways:
Selecting from the menu: File -> Properties
Using the shortcut: Alt + Enter
This gives you a dialogue which contains both the full path of the document, as well as the relative path from the workspace root.
The dialogue can be quite handy: it allows you to highlight and copy the file path.
Linking to Project Explorer won't work if you have many files - it will select the right file in the list, but it won't "scroll" to that portion so it is visible.
You'd have to manual scroll the Project Explorer view to see where the file is. It could also be nested so deeply that the full location will be obscured by truncation.
Another way to quickly (keyboard-free) see the path is to hover over the file type icon (on top of the open editor window).
Eclipse also has the ability to link the explorer view with the current file, so that whenever you change a file, it is expanded and selected in the explorer view.
Just look for the following image at the top of the view: