I'm need setting in Eclipse width of line and select "use modifier "final" where possible". I go to Windows->Preferences->Java->Code Style->Clean Up. Press Edit, in the tab Code Style selected "Use modifier "final" where possible". Wrote a new profile name. Apply->Ok.
Then go to Windows-Preferences-Java-Code Style-Formatter. Press Edit, in tab Line Wrapping, in field "Maximum line width" wrote 180.Wrote a new profile name. Apply->Ok.
Before this actions close the Preferences window and press Ctrl+Shift+F, but unfortunately the settings of edditing not changed.Restart of Eclipse not help. I'm using the Eclipse luna. Help me please. Can I do something wrong?
Related
I am using Eclipse Neon. When I press Ctrl+Space, Eclipse shows a popup on the bottom right of Eclipse screen which includes a text Content Assist Ctrl+Space. When I click this dialog, then Eclipse shows suggestions:
How can I see suggestions directly after pressing Ctrl+Space?
Make sure that no other command than Content Assist is bound to Ctrl+Space:
In Window > Preferences: General > Keys filter for ctrl+space and bind other command to other keys.
I use Netbeans 7.2.1, when I type private String a(Java code), the IDE shows a tip window aString which asks me to name a variable with its type as postfix. In addition, when I continue to type ;, it completes the code with private String aString;. Actually, I do not like this naming style, so, how to change the settings?
For windows :
Go to Tools > Options > Editor > Code Completion
Select Language Java from dropdown
Auto pop-up on typing any Java identifier part
You can take help from the images below:
Under Preferences -> Editor -> Code Completion is where you can find the auto complete properties. You can disable the 'Auto Popup Completion Window' to keep it from automatically popping.
You can bring up the auto complete popup with the hotkey: control+space
Also while the completion window is displayed, pressing the esc will close it without inserting an autocomplete value.
Go to: Preferences -> Editor -> Formatting.
In the drop-down box "Language", choose "Java".
There are many other categories you can choose from and you can customize your code formatting style there.
Is there any keyboard shortcut key for navigating to the next error (red markers created in error stripe) in Netbeans editor?
As of NetBeans 8 there doesn't appear to be a way to navigate through errors exclusively in the editor. If you look at tools->options->keymap an action does exist for this (next error in editor), but the shortcut is blank. I set it to Alt+E on my IDE, this will navigate through all annotations - not just errors. So if you don't mind cycling through all hints, warnings errors, etc, this will work.
The closest I've been able to get for navigating specifically through errors is using the action items window. Add a filter for errors, then you can use Ctrl+. and Ctrl+, to navigate through the list (see How to display all compile errors in Netbeans as a task list?).
That would be Ctrl-Period ::: (Period means .)
Links to many shortcuts:
Highlights of NetBeans IDE 8.0 Keyboard Shortcuts & Code
Templates
134 Shortcuts for NetBeans 8 (Windows)
EDITED--URLs NOW VALID thru ver. 8
Add the Action Items window to your IDE. This lists all of your errors and is dynamic, so will be updated when you save.
From the menu bar: Window->Action Items.
(Took me forever to understand why when I would save, I wouldn't see any compile errors, but then it wouldn't run.)
Actually question is about "next error in editor". At least in my configuration (NetBeans profile) this function doesn't have any shortcut by default so if you go to Tools->Options->Keymap and in search field you write "Next Error in Editor" you can add any shortcut that fits the best to you
On a Mac things are different and there is no keyboard shortcut for navigating to a usage/compile error as far as I can tell.
You can go to Help -> Keyboard Shortcuts Card to see the full list of short cuts for your platform.
See https://netbeans.org/kb/articles/mac.html for info for macs and https://usersguide.netbeans.org/shortcuts.pdf for the default shortcuts for PCs.
No. there is no good and easy way on keyboard.
just clicking on those red marks (by mouse) is the fastest way. (it's not an easy/good way. but the best possible.)
For searching a document, I like using the floating Find/Replace window that pops up. Lately, however, hitting command-F pulls up this Find/Replace bar at the bottom of the editor window. I suppose I wouldn't mind it so much, except instead of selecting the text to search it puts the insertion point after whatever I've searched for before. Very annoying. Clicking on the magnifying glass pops up the other Find/Replace dialog.
How can I get the normal dialog to pop-up by default?
I should add that for some reason search is no longer working in Preferences, so I can no longer just search for "Find" to locate the setting I might need to change. So you'll have to give me the exact location.
A little more experimenting reveals that this is PyDev-specific behavior but I still can't find the setting that needs changing.
type Ctrl-Shift-L twice brings up Preferences window.
In Preferences window: type 'find bar' in the search field. This finds 'Find bar' in category 'Aptana Studio' (assuming you have Aptana Studio included in Eclipse). Click this entry 'Find Bar' to bring up the 'Find Bar' settings page.
On the Find Bar settings page uncheck 'Use custom find bar on Aptana editors' See shot.
This did the trick for me!
I added a feature request to the Pydev tracker for a setting to suppress the find bar: https://sourceforge.net/tracker/?func=detail&aid=3097964&group_id=85796&atid=577332
Could you make sure the 'command-f' is binding with menu item 'edit' - 'find/replace...'?
Might other plug-in hook the key binding.
And another way is using 'spy' to see which one contribute it. Focus on the search widget, then click 'alt - shift - f1'.
How do I activate line wrapping in text editor in Aptana Studio?
I'm interested about wrapping in view mode (in order to not have to do horizontal scrolling).
Tried right-clicking within the editor and selecting ‘word wrap’ from the context menu?
On Main Menu click "Window" choose "Preferences". In left-side list, click "Aptana Studio". An alphabetical list on right side will show. Select "Editors" then check "Enable word wrap (requires restart)".
It seems to work on the latest version of Aptana as well. Here are some screenshots of where you can find such option.
I'm using Aptana Studio 3 and you can right click anywhere in the code and select Word Wrap which should be the second last option.
I'm using Aptana Studio 3, build: 3.4.2 and found that 'word wrap' can be change with in editor from context menu, BUT only if the mouse are on line number field! If the mouse is on text editor the option 'word wrap' missing. This change only setting for current opened file. It will be good to change default option !
Window > Preferences > Aptana > Editors...
Actually click on the word "Editors", you don't need to click the "+" symbol next to it. Once that loads, go to the "Advanced" tab, and you should see the option you're looking for to enable word wrap.
Found that here.
http://forums.aptana.com/viewtopic.php?f=14&t=7482
Once you restart, you should be good to go.