简体   繁体   English

Eclipse编辑器代码编辑

[英]Eclipse editor code editing

First of all, I was unsure what the title of this question should be so I just gave it my best shot. 首先,我不确定该问题的标题是什么,所以我只给了我最好的机会。 I just started using Eclipse as my IDE, it's a great IDE and all but I get annoyed when I highlight a portion of code to be edited or replaced, any code after it gets deleted. 我刚开始使用Eclipse作为我的IDE,它是一个很棒的IDE,但当我突出显示要编辑或替换的代码部分(删除后的任何代码)时,我都会感到恼火。 So for example: 因此,例如:

System.out.println(theScanner.nextLine());

I want to replace nextLine with nextDouble. 我想用nextDouble.代替nextLine nextDouble. I would highlight nextLine and type in nextDouble but then the ()()(); 我将突出显示nextLine并输入nextDouble ,然后输入()()() nextLine would be erased and I would have to type them in again. 将被删除,我将不得不再次输入。 Is there a way to fix this? 有没有办法解决这个问题?

Click Windows > Preferences . 单击Windows > Preferences Type content assist in search box. 在搜索框中输入内容帮助 Select Completion overwrites option as shown below 选择Completion overwrites选项,如下所示

在此处输入图片说明

Keep cursor after character t then press Ctrl + Space . 保持光标在字符t之后,然后按Ctrl + 空格键

Then type d then select nextDouble method press Enter 然后输入d然后选择nextDouble方法按Enter

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM