Weird Alt +/

Source: Internet
Author: User

Come from http://a280606790.iteye.com/blog/770357

Suddenly found that Ctrl + space could not appear content assist (I changed the shortcut key ...) This strange problem has plagued me for about an hour today. The problem is as shown in the title. Why not? Press "." Or press "Alt + X. "No Default proposals" is always prompted ". For this reason, I had a great deal of fun re-installing eclipse, but I couldn't; I found another version of Eclipse, but I still couldn't ...... So I am depressed.

As a result, many old folks have encountered this problem. The solution is included here as the first article in kaishan. Haha, it is convenient for everyone and convenient for yourself. Thank you.

Window-> preferences-> JAVA-> Editor-> content assist-> select the proposal kinds contained in the 'default' content assist list in advanced, just hook other Java proposals.

 

Solve the problem that alt +/Shortcut Keys cannot be used in MyEclipse 6 for quick upgrade.

Come from http://xiangxingchina.iteye.com/blog/683010

Problem description:
You cannot use the Alt +/shortcut key in myeclipse 6 for a prompt.

Cause analysis:
In myeclipse 6, the content assistant shortcut key is changed from Alt +/to Ctrl + space, which is in conflict with the shortcut key for switching the input method. Alt +/the shortcut key is used as the shortcut key for the new word competion function.

Solution:
Method 1:
Choose Windows> Preferences> General> Keys, find the word competion command, and change its shortcut key alt +/to another shortcut key or delete it, then, change the shortcut key of the content assist command from ctrl + space to alt +.
Method 2:
Modify-Duser. language = en in eclipse. ini under MyEclipse 6.5 \ eclipse to-Duser. language = zh, and restart myeclipse.

 

 

Bytes ------------------------------------------------------------------------------------------------------------------------

 


 

1. Eclipse itself is very fast, but after myeclipse is added, it will occupy the memory, and the speed is very slow. So how can we drag Eclipse into myeclipse? Here we provide one:
Tip: Cancel automatic validation
There are a bunch of validation items, such as xml, jsp, jsf, and js. We don't have to perform automatic verification on all of them. We only need to perform manual verification when necessary, and the speed will immediately increase to several levels!
Cancellation Method: windows --> perferences --> myeclipse --> validation
Except for all the check boxes under Manual, none of them are selected.
Manual verification method:
On the file to be verified, right-click --> myeclipse --> RUN Validation

2. In the shortcut keys of myeclipse6.0 or even later 6.5ga, we automatically complete the commonly used Alt +/code.

However, due to conflicts between shortcuts in earlier versions
The solution is as follows:
The method is as follows:
1. Select WINDOW> preferences from the menu bar of myeclipse6.x;
2. Choose General> keys;
3. Click word completion in the form in the middle of the right, and then click Remove binding. Enter a shortcut in the binding below;
4. Select Content assist and click Remove binding. In the binding field, enter Alt + /;
5. Click OK.
3. Setup Tip 2
In eclipse, the full function of word population is implemented by Ctrl +/by default. The system lists several similar options.

Key to start this function, that is, to break into words. After a pause, several similar options will be listed for selection?

The solution is as follows:
Only one "." exists. Indicates that the code prompt is displayed only after "." is entered. Here, we want to modify the code. By default, eclipse allows only four custom characters.

However, you can export the current settings, save them as a file, modify the settings in the file, and then import the settings to break through the eclipse restrictions.

Open Window> perferences and expand Java> editor> contentassist in sequence,
Bottom auto-activation
Option: auto activation triggers for Java
Enter a few casual characters, such as "ASDF", and click "OK" at the bottom to save the settings.


Open File-> export of Eclipse, expand general-> perferences --> export all in the window, and click Next. Click "Browse" to select any path, save the configuration file, and click "finish ".

Use NotePad to open the saved configuration file (extension file name: *. EPF), press "Ctrl + F", enter the set "ASDF", and find the string. Change "ASDF" to "abcdefghijklmnopqrstuvwxyz.", save it, and exit notepad.

Open File-> Import of Eclipse, expand general-> perferences in the window that opens, click Next, select the modified configuration file, and finish. Now, open window-> perferences, expand Java-> Editor-> contentassist in sequence, and we will find that it has exceeded 4 characters, that is, we enter any letter and ". "There will be code prompts.

After the modification, the code prompt is displayed after you enter a character 200 milliseconds by default. If the input is too slow, you need to increase the prompt delay. If you think it is too slow, it can be changed to a smaller number, but the smaller the number, the higher the requirement for system performance. I set it to 50 milliseconds.


CTRL + M switch window size
CTRL + q jump to the last Edit

Alt +/, enter sysout in the class file, and press Alt +,
IDE automatically generates system. Out. println (); one of the expression is "Sss". Press this key, and IDE automatically generates system. Out. println ("Sss ");

CTRL +/in the code window //~ Annotations.
CTRL + Shift +/in the code window, In the JSP file window is <! --~ -->.

Alt + Shift + O (or click the toggle mark occurrences button in the toolbar) When you click a tag, the yellow color of this tag is highlighted elsewhere on the page, and the right border of the window will show a white square, click this square will jump to this mark.

CTRL + I format the activated element format active elements.
CTRL + Shift + F format the file format document.
CTRL + S Save the current file.
CTRL + Shift + S save all unsaved files.

CTRL + Shift + F4 close all open editer. CTRL + W (CTRL + F4) disable the current editer

CTRL + Shift + M (place the cursor on the class name of the package to be imported first) to add the Import Statement.
CTRL + Shift + O is used to add missing import statements and delete unnecessary import statements.

CTRL + D Delete the current row.

CTRL + 1 quick fix (the most classic shortcut, you don't need to talk about it)

CTRL + ALT + ↓ copy the current row to the next row (copy added)

CTRL + ALT + ↓ copy the current row to the previous row (copy added)

Alt + ↓ interaction position between the current row and the following row (especially practical, you can save cutting and pasting)

Alt + ↑ interaction between the current row and the previous row (same as above)

CTRL + q locate the Last edited location

CTRL + l locate in a line (for those with more than 100 programs, there will be good news)

CTRL + M maximize the current edit or view (then press it, and vice versa)

CTRL + T quickly display the inheritance structure of the current class

Ctrl + J forward incremental search (after pressing Ctrl + J, each letter editor you enter provides a quick match to locate a word. If not, it is not found in stutes line. It is particularly useful when querying a word. This function was available two years ago)

Ctrl + Shift + J reverse incremental search (the same as the previous one, but only from the back to the front)

Alt + Shift + R Rename (one of my favorite ones, especially the Rename of variables and classes, which saves a lot of labor compared with manual methods)

Alt + Shift + M extraction method (this is one of the most common methods in refactoring, especially useful for a lot of mud code)

Ctrl + F is used to find the variable you want to search for in your Editer, And you can modify the name

 

Bytes --------------------------------------------------------------------------------------------------------------


 

Setting of code prompts in MyEclipse 6.5

For MyEclipse, choose Windows> Preperences> General> keys.

Find the word completion shortcut key and delete the original alt +! // Required

Change the Content Assist shortcut key to alt +/or another shortcut key you want to change.

MyEclipse encoding settings

After installing Myeclipse, the default encoding is GB18030. Generally, UTF-8 is recommended. If garbled characters are found after the project is imported, the encoding settings are incorrect.

To set the global encoding, choose toolbar> WINDOW> preferences> General> workspace> text file encoding.

Local encoding settings: Right-click the source code and choose --> General --> editors --> test editors --> spelling --> encoding. Here we set the encoding of a single file.

We recommend that you use the global encoding settings.

Myeclipse sets the default encoding method for JSP pages:

Windows-preferences-myeclipse-files & editors-JSP-encoding on the right: Set to iso000046/Unicode (UTF-8)

In the Java file, myeclipse sets the author, date, and other instructions:

Windows-preferences-Java-code style-code templates-Comments on the right-select types) -Click Edit and enter the following information:

/**
* @ Package name $ {package_name}
* @ File name $ {file_name}
* @ Author nourewang
* @ Creation date $ {date}
* @ Version: V 1.0
*/

Click OK-select the code style on the left-select the check box on the right (Automatically add Comments for new Methods and types)-click Apply) -click OK)

In eclipse, there is a spell check switch to turn it off. For more information, see windows> preference> enter spell.

Automatic prompt: windows-> preference-> enter content assist and select Java-> editor-> content assist

Auto activation triggers for Java: Enter. abcdefghijklmnopqrstuvwxyz to confirm.

Then Export

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.