Netbeans IDE scaling too small - netbeans

The Netbeans IDE menu icons(new project, open project, etc) are all extremely small. Any pop-up menus that open while I am working start with very small dimensions, forcing me to expand them so I can see what I am doing.
How do I increase these sizes?
I looked up a solution that involved editing the netbeans.conf file, but if I tried to save the edits, the computer said I needed admin permission(I am an admin in the computer).
What can I do to resolve this?

To edit netbeans.conf you text editor must be running in administrative mode. In order to put it in administrator mode follow these steps.
1.) Use the windows search bar and search for the text editor you want to use.
2.) right click on it and then click on "Run as administrator"
3.) use your text editor to open the netbeans.conf
Now you should be able to edit it.

Related

How to open files in new tabs in Visual Studio Code

I recently started using Visual Studio Code and I would like to know, is a way to open files in a new tab? Currently whenever I open a new file the files I currently have open disappear. I say new tab, but any option that will let me open a new file in the same window as the old one works.
I have tried disabling Preview Mode through the workbench settings as shown in this answer: How to config vscode to open files always in a new tab?. However, when I choose Open or Open Recent the new file still replaces my old file.
Thanks.
Once you have to open your settings file, add the "workbench.editor.enablePreview" property and set value to false.
For 1.21.1 version.
In user settings =>
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen"
the best way i found.
Starting with VSCode 1.52 (Nov. 2020), you should not have any more issue: all files will open in new tabs, even in preview mode.
Better handling of preview editors:
Preview editors are now better handled with numerous improvements based on feedback and making this feature work more consistent.
The setting workbench.editor.enablePreviewFromQuickOpen is now disabled by default so that editors opening from quick open will not appear in preview mode anymore.
When you start a navigation (e.g. go to definition), the editor you start from will move out of preview mode to keep it open while the new editor will be in preview mode until you navigate further.
We changed all of our custom trees (the ones used from extensions or Git changes view for example) to work more consistently like our built-in trees (like the explorer).
This means, the following interactions now apply to all of them:
double-click or mouse-middle-click to open non-preview
Enter to open non-preview (Space to open in preview-mode)
Note: if you are the author of an extension that is leveraging our custom tree API, you can benefit from this change as well.
Make sure to use vscode.open or vscode.diff commands for the TreeItem.command and you are in!
A new menu item in the editor overflow menu allows to quickly turn off preview editors altogether:
You need to double click on the name of the file. Also, it needs to be done swiftly elsewhere you will be opening in the same tab.
You can drag and drop file near to the opened tab and the file will open in new tab.
Thanks everyone. Double clicking and dragging was useful, but it still didn't solve my problem when opening files from different projects with the "Open File" menu command. I found that Multi-root Workspaces is what I was looking for. https://code.visualstudio.com/docs/editor/multi-root-workspaces
This is likely due to Visual Studio Code opening file in what's called "Preview Mode", which allows you to quickly view files, ideally if a tab is in Preview Mode then its title in the tab bar, will be italic.
To disable Preview Mode set "workbench.editor.enablePreview": false in your settings file or use the "workbench.editor.enablePreviewFromQuickOpen" option to disable it only from the quick open menu.
Alternatively, use command palette CTL+Shift+P (to get all settings) VScode settings then in User => Workbench => Editor Management you can uncheck Enable Preview and Enable Preview from Quick Open to get the same results described above

Automatically save files in eclipse when closing tab

In Eclipse (CDT) when I close a modified file's tab in the code editor, I'm prompted with whether or not I want to save the file. Unlike when I run the project, I'm not given an option to autosave the file when closing a tab in the prompt that comes up. I haven't been able to find one yet, but is there any setting in the Eclipse Preferences that disable these prompts and automatically save modified files when I close their tabs (not every x time)?
You can use auto save feature in eclipse neon. See this answer also look at other answers to this question Eclipse save automatically

Eclipse File Associations: displaying images

I am developing some help documentation in a Java project in Eclipse. In the resources folder there are my HTML pages and a couple of GIF and PNG images that will be displayed inside the HTML.
Now for my convenience I want to preview the images in the file structure of the project, to see what they show and which one to include in the HTML page. If I double-click an image, the default action that Eclipse does is: it opens it in Internet Explorer. Since I don't like IE, I want to change this default action. What I would prefer actually is that it opens some image viewer of some kind inside Eclipse.
I know this is a matter of file associations. However I was not able to get it working.
What I tried to do so far:
As an example I did it for *.gif.
I went to Preferences -> General -> Editors -> File Associations. There I pressed "Add..." and added *.gif.
Then I pressed "Add..." at the Associated Editors section and added an external gif viewer:
I expected this to open the default image viewing program from my Windows system, but for some reason it still opens it in Internet Explorer.
So what can I do to change this? Does Eclipse have an internal image viewer of some kind?
Why not just install plugin for viewing images
http://marketplace.eclipse.org/content/quickimage -> http://psnet.nu/c/quickimage
Sources https://github.com/persal/quickimage
There was nothing wrong with Eclipse, and the described solution is fine.
In fact the problem was with the Windows system. The system's default file association with images was the Internet Explorer. Changing that solved the problem.
right click on the file -> open With.. and then select -> System Editor (it should remain selected as a checkbox does)
After that you should be able to double click on a file and open it with the right app.
My environment is eclipse indigo build 1857 on gentoo linux
EDIT:
When you associate some external software with an extension, you should see on the menu "open With.." all application associated with the extension(On the top).
Then you can see : Text Editor - System Editor - Default Editor - Other...
Text Editor: open your file with the text editor
System Editor: open your file with the app associated with extension in the operating system
Default Editor: open your file with the (default) app associated by you under Preferences ->General -> EDitor -> File Associaton etc...
You should have something like this picture, without "In-Place Editor" option
Eclipse Oxygen (4.7)
Eclipse Oxygen (4.7) added the following feature - Images are opened in the Eclipse IDE.
You just need to double click the file name in the Package Explorer.
The file URI looks like this file:/// + absolute path:
Now there is a bug related to the URI shown on the right side.
If you rename the file, it won't be updated without reopening the file.

Open sublime text editor into eclipse

Is there a way to open the Sublime Text Editor into Eclipse to edit HTML, JavaScript and CSS?
The idea is to use only the Text Editor without project explorer.
If this isn't possible, is there a plugin that does what I said?
I would have just left this as a comment but I can't. First off, why is using the project explorer a problem?
Next, I know with Sublime Text 2 & 3 you have the ability to view/edit a file in two places simultaneously, just go File > New View into File. In Eclipse you can go Window > New Window. Alternatively you can import a project/file into eclipse or sublime. Either of these will bring in the project explorer (unless you import one file or something).
You might want to have a look at Subclim + Eclim.
I had to open the files via "Project Explorer -> Open With -> External -> sublime" to get the files refreshed right away (e.g. for a running webapp). But other from that, it's quite nice.

Running Eclipse projects on the Command Prompt

I have a console-based C project in Eclipse. Is there a button I can press to launch my application in a Command Prompt window?
You can run your application as an External Tool, and there's a toolbar item for that. Looks like a green circle with a white arrow, beside a red toolbox. I'm a Java developer so I don't really know the CDT, but at least in the JDT you can run any command line tool in this way. (If it's not in your toolbar, right-click the toolbar and choose Customize Perspective… then find the External Tools item under Launch, and add it.)
First, click the down-arrow beside the button and then choose External Tools Configurations…. In the dialog, select Program from the left side and then click the New button in the toolbar. You are basically creating a shortcut that will live in the toolbar. At this point you can fill out the command line details to run your application. There's a lot of goodies like setting up environment variables, requiring a build of your projects before launching, etc. When you're done, save it, and you can run it as often as you like by clicking the arrow-and-toolbox button. You can come back and edit it later too, make duplicates, etc.
If you're working with a team, or you just want to do a really nice job:
In the Common tab, under Save as, choose Shared File. This will create a file in your project to represent the tool shortcut that you're building. That means you can check it into your source tree, and others can use it too. These files are XML so you want to check them in as text, not binary.
Start your working directory with ${workspace_loc} so that anyone who checks out your project can run it without having to adjust the shortcut for their file system.
Not directly, but you could configure an Ant task to run it (if it doesn't require console input), or you can configure firing up a JVM under Run|External Tools.