netbeans 7.3.1 no options under code formatting - netbeans

I have just installed Netbeans 7.3.1 under GNU/Linux, Archlinux kernel version: arch-pc 3.10.10-1-ARCH x86_64
I have activated the PHP plugin and i want to setup the formatting options, for this I'm going to Tools->Options->Editor->Formatting, but the problem is that in here I have no code to select and setup the formatting, can this be a bug or I am doing something wrong?
This is how it looks when i get there:
The list under Language: has options Item 1 to Item 4 and the same for Category: Item 1 to Item 4.

The only way I was able to bring the option back up was to go to a deactivated language (PHP in my case) and click the button to activate it to get the available options.
After doing this, I clicked back on the "Formatting" tab and the options were all there again.

I have found a solution:
Go to: https://netbeans.org/kb/docs/java/editor-formatting-screencast.html
Download the zip under: NetBeans Sample Code Library
Import project: File>Import Project>From zip...
Go to Tools>Options>Editor>Formatting and you have the settings back
I do not know why it worked but it worked. Hope that this will help you.

Just enable Java SE plugin (tools - options - java - enable). You can then set formatting options for all languages (not only Java).

I had the same problem on arch linux 64bit. My solution is to install netbeans-cpp from AUR -- this version works, but hasn't other languages.

I was having the same issue with C++. This fixed it: Tools > Plugins > Installed > Click check box: "C/C++" > Activate. Now recheck editor formatting options.

Related

Netbeans 12.1 menu fonts too small, --fontsize no longer works in /etc/netbeans.conf for Ubuntu 20.04

Netbeans 12.1 no longer respects the --fontsize directive in the /etc/netbeans.conf config file.
The menu fonts are way too small on a large screen.
Yet setting Preferences->LXQt Settings->Font->Point size in the Ubuntu control menu, which is normally respected by most Unix app windows, does not carry through either.
And although Netbeans's
Tools->Options->Fonts & Colors->Profile: NetBeans->Syntax->All Languages->Default -> Font
setting changes the font for the code itself inside the editor, it doesn't change the IDE menus.
You would think, after all these years, that there would be a command inside the Options to change the menu font size, but it's still not there yet.
And now editing config to change the --fontsize startup option is no longer respected.
How best to change the size of all the system fonts in the Netbeans IDE display environment?
The best solution I've found so far is to change the Look & Feel.
Invoking aptitude install netbeans currently (Sept '20) gives version 10, which breaks with a jcraft/jsch error, also "could not successfully run the /usr/bin/g++ compiler" on my system even though g++ is perfectly fine and protections cleared, also "Build Host not connected", after C++ is installed from the 8.2 repository. Tastes like some kind of jdk error (I've got /usr/lib/jvm both 8 and 11 jdks installed, hard to believe it can't find them). But if the install doesn't work right out of the box, it's a bad sign. So I tried snap install netbeans --classic . This gets version 12.
Netbeans version 12 comes with the Metal Look & Feel configured by default. Changing this to the GTK+ look and feel, using Tools->Options->Appearance->Look and Feel->GTK+ with a restart, finally got the menus to the correct system size.
Unfortunately, the Help->About popup still does not respect this, having minuscule fonts. Perhaps there is a better way?
Although "Look and Feel" is an improvement, I would still like to see direct control of the IDE menu fonts. From the Options Fonts & Colors menu.
Running netbeans from commandline with an additional argument --fontsize 12 works for me. Open a console and go the bin directory of netbeans and use the command ./netbeans --fontsize 12. Change the font size to whatever suits you.
In Netbeans in Tools->Options->Appearance->Look and Feel, I could solve the problem.
But in my case, the selected option already was GTK+. Changing to Metal solved it.
Install Netbeans 13.
It should help

Improve Eclipse look and feel on Fedora

I am using Eclipse Neon on Fedora 24. The look and feel is not as great as Eclipse on Windows - for example, it takes a long time for the mouse pointer to become draggable when on the border of two windows. What are some potential solutions to improve this.
Thanks
A few things to consider:
Sometimes certain plugins cause glitches. For example I know Javascript plugin interferes with C development sometimes. Try a fresh upstream Eclipse with a fresh workspace, ex try the latest 'maintenance' eclipse:
http://download.eclipse.org/eclipse/downloads/
These often have the latest fixes.
If you've turned on the black theame, you could try the regular white theame as currently there are some u.i issues specific to the dark theme. ex:
499515: [Gtk3][Dark] Click on package explorer only works on second click when dark theme is enabled
https://bugs.eclipse.org/bugs/show_bug.cgi?id=499515
Some Window managers (ex i3) tend to introduce visual glitches in Eclipse. Try alternative window managers or the standard 'gnome' to see if there is a difference.
If you're running wayland, currently Eclipse is a little unstable on wayland, but port is in progress: 496923: [Wayland] Improve support for Wayland in 4.7
https://bugs.eclipse.org/bugs/show_bug.cgi?id=496923
You should also consider submitting a bug with more specific details of your setup, (help -> about -> installation details -> Configuration, copy and attach). To do so, go here:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform
Select "SWT" from Component.
If all else fails, I often hang out on freenode#swt, feel free to ping me there. (lufimtse)
Try this
https://coffeeorientedprogramming.com/2016/10/06/make-applications-eclipse-use-x11-backend-on-wayland-fedora-25/
and I modified my /usr/share/applications/elipse.desktop exec parameter, like this
Exec=env GDK_BACKEND=x11 eclipse
my eclipse.desktop =>
[Desktop Entry]
Type=Application
Name= Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/opt/eclipse/icon.xpm
**Exec=env GDK_BACKEND=x11 eclipse**
Terminal=false
Categories=Development;IDE;Java;
Terminal=false
StartupNotify=true
Encoding=UTF-8

VSCode plugin VSCode-PHP-Format not working

I start using vscode less than a month. Please forgive me if this is a dump question.
OS: OS X 10.11.3
VSCode: 0.10.6
Plugin: VSCode-PHP-Format (download via git clone)
Extension path: ~/.vscode/extensions/VSCode-PHP-Format
I restarted VSCode, open php files, but do not see "Format Code" on the right click menu.
Any idea how to debug this? Right now I don't even know if the plugin load correctly.
With tips from Tobiah Zarlez, I found the "Toggle Developer Tools" in VSCode.
It is shown in the console the plugin cannot find js-beautify.
Solution
Inside ~/.vscode/extensions/VSCode-PHP-Format, run
npm install
It will pull in js-beautify. Then restart VSCode.
I am on my phone and not able to double check to see if it is there, but I'd recommend installing from the visual studio marketplace to insure the plug in is installed correctly. You can do so by hitting CTRL+SHIFT+P and typing "install extension"
Beyond that, a quick glance at the code the plug in should be activated when you open a php file... but since this is a third party plugin, I can't speak to if it actually works or not.
(Again, on phone so can't test)
What you could do is modify the extension.js file to add a "console.log ("hello world")" to the activate function. Them check the log to see if the plug in is installed correctly.
I saw you weren't the only person to complain about the plug in not working though. If I were you, I would continue to try and contact the creator

Eclipse hangs when installing new software

I am trying to install new software within Eclipse the C++ version. Help -> install new software. When I go to install new software, it hangs or takes hours to move a percentage.
I have read that this is a known bug in JRE7, which I am assuming I am using since I have it installed. I changed to JRE6 by changing the eclipse.ini file with the argument -vm XXXX where XXXX is the path to my javaw.exe.
It does not seem to have changed anything.
Ideas?
Thanks.
Finally it worked for me only by unchecking Contact all update sites during install to find required software. From what I'm seeing it might be a Mac issue, on Windows and Linux it worked without any change.
You can get rid of this problem by simply disabling your Firewall software before installing new plugin. If your Antivirus has built-in Firewall, you need to disable it.
Optionally, to reduce the update time, you can uncheck Contact all update sites during install to find required software, see my blog post for details.
I've found it helps by adding this line to the eclipse.ini file:
-Djava.net.preferIPv4Stack=true
To install new plugin into eclipse, you can download plugin installer or go market place to install.
Make sure what SDK you are using and fill the correct path.
Wish you success
To get around this issue, I went to Windows->preferences->general->network settings and typed in each repository manually. I also selected manual from the drop down at the top of the window.
It seems it was also useful to get off of my home network and I had to get on another network.
I kept having this issue and resolved it by following Nitin Kale's fix for Eclipse slowness on fresh 16.04 here> https://askubuntu.com/a/788826
open terminal and type following command
export SWT_GTK3=0 add this to your ~/.profile file to make it
persistent across logins (you'll need to logout and log back in to be
able to start eclipse from shortcut)
then go to your eclipse folder and search for eclipse.ini file Right
click anywhere in the folder and choose "open in terminal" and type
following command in terminal
sudo gedit eclipse.ini and add the following line before
--launcher.appendVmargs
--launcher.GTK_version 2 Search in the file for 256 and replace it with 1024
I had to go to Preferences -> General -> Network Connection and set Active provider to 'direct' as it was 'native' by default. Then it worked fine.
None of above methods worked for me in Ubuntu 16.04 LTS and Eclipse Mars. Had to do following
Go to "Preferences"->"Install/Update"->"Available Software Sites" and uncheck all except "Mars".
After this install worked in a jiffy.
I solved my issue by following all steps in above answers
Window -> Prefrerences -> Install/Update -> Available Software Sites and then uncheck all except Your package name ( neon, mars ).
Window -> Prefrerences -> General -> Network Connections and set Active provider to "manual".
Help -> Install new Software -> uncheck "contact all update sites during install".
If anyone is still having this issue simply go to windows defender and add the installation app as an exception.

eclipse on linux

I was running eclipse on Ubuntu Linux. What I have noticed is some icons were missing for File->New->(the items appear in submenu) package,folder,etc. Is this the problem with Ubuntu linux or all the eclipse which is installed on linux?
Thanks
Bhanu
Many later versions of Gnome have menu icons disabled by default (my refresh icon is gone as well). If this is your problem you can get them back by using:
Select System > Preferences > Appearance from the menu.
This displays a tabbed panel, labeled 'Appearance Preferences'.
Select the Interface tab, and check the "Show icons in menus".
Select Close.
The menu icons should be back.
See http://ubuntuforums.org/showthread.php?t=1246454
Sigh. also https://bugzilla.redhat.com/show_bug.cgi?id=539993
I had the same problem earlier I have ran the below steps and it got fixed. Try to re-install eclipse by giving the below commands
sudo apt-get remove eclipse then
sudo apt-get install eclipse
Let me know if it resolves. Good Luck :-)
This worked for me:
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/ButtonImages': <1>, 'Gtk/MenuImages': <1>}"
Source: https://bbs.archlinux.org/viewtopic.php?id=185714