Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code completion feature error #1377

Open
xionggit opened this issue Apr 29, 2024 · 5 comments
Open

Code completion feature error #1377

xionggit opened this issue Apr 29, 2024 · 5 comments
Labels
needinfo Further information is requested

Comments

@xionggit
Copy link

xionggit commented Apr 29, 2024

"I'm using the latest version of Eclipse, version 202403, on Windows 10. My computer also has historical versions of Eclipse, 202206 and 202309. I'm using the DevStyle plugin."
"I often find that when I'm writing code, the auto-suggested and auto-completed code often results in the deletion of carriage returns or line breaks, or selects additional characters such as ')' when code is automatically deleted. Please refer to the attached GIF recording, Pay attention to the mouse hovering position."
eclipse-error
Eclipse installation Destails 的Configuration("Configuration option under 'Installation Details' in Eclipse")
config.zip

@humphreygao
Copy link

humphreygao commented Apr 29, 2024

Please study these two configurations. I guess you select Completion overwrite.
image

Here are the suggestions I have come up with regarding this issue:

  1. the IDE could automatically selects Completion inserts or completion overwrites according to the scenario.
  2. It is not necessary to automatically fill in parameters, because they are basically not the parameters you want. Therefore, the IDE should not check Fill method arguments and show guessed arguments by default. Unless the code completion make a breakthrough -- the estimated method parameters are correct after statistics.

The above two points have inertia: it is estimated that many contributors or users disagree. In the first point, I don't know the difficulty of implementation, but VS Code is based on eclipse, and it does a good job.

@jukzi
Copy link
Contributor

jukzi commented Apr 29, 2024

Please use english only.

@jukzi jukzi added the needinfo Further information is requested label Apr 29, 2024
@xionggit
Copy link
Author

你研究这两个配置就会了,你选择了Completion overwrites。 image

所以现在应该要求: 1.代码提示时,IDE根据场景,自动选择Completion inserts或者completion overwrites。 2.不需要在代码提示时,自动填充参数,因为基本都不是自己想要的参数。因此IDE应该默认不勾选 Fill method arguments and show guessed arguments,除非代码提示有所突破,猜出来的方法参数经过统计大概率都是对的。

上述两点,都有惯性:估计有很多人贡献者或者用户不同意。其中,第1点不知道实现难度啊,但VS Code是基于eclipse的,它就做的蛮不错的,我估计Eclipse实现难度不算太大。

是最佳选择的字符多了。

@xionggit
Copy link
Author

Please use english only.

"I'm using the latest version of Eclipse, version 202403, on Windows 10. My computer also has historical versions of Eclipse, 202206 and 202309. I'm using the DevStyle plugin."

"I often find that when I'm writing code, the auto-suggested and auto-completed code often results in the deletion of carriage returns or line breaks, or selects additional characters such as ')' when code is automatically deleted. Please refer to the attached GIF recording, Pay attention to the mouse hovering position."

"Inserting the best guess parameters sometimes selects a range of 1-2 characters too much, or automatically selects the next line of code, resulting in confusion."

@xionggit xionggit changed the title 代码补全功能错误(Code completion feature error) Code completion feature error Apr 29, 2024
@jukzi
Copy link
Contributor

jukzi commented Jan 2, 2025

This issue does not give enough information Please describe a single usecase as text. 1. how to reproduce, 2. what happens 3. what is expected to happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needinfo Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants