eclipse auto-completion feature with descriptive argument names
i use eclipse as IDE for writing java programs. i can use auto-completion feature of course, for example, when i want to open a JOptionPane, auto-complete show it for me as below
as you see it just show available fitting methods, argument list, and type of each methods argument , but each argument is written as arg0, arg1,... !
but recently i watch a video tutorial and i see that auto-completion feature in lecturer system show everything like mine, except that it doesn't show arguments as arg0, arg1, ... , but give them an descriptive name! like below:
i wonder how can i make my eclipse auto-completion to use a descriptive name for each argument, since it's so helpful I think.
thanks
eclipse autocomplete
|
show 4 more comments
i use eclipse as IDE for writing java programs. i can use auto-completion feature of course, for example, when i want to open a JOptionPane, auto-complete show it for me as below
as you see it just show available fitting methods, argument list, and type of each methods argument , but each argument is written as arg0, arg1,... !
but recently i watch a video tutorial and i see that auto-completion feature in lecturer system show everything like mine, except that it doesn't show arguments as arg0, arg1, ... , but give them an descriptive name! like below:
i wonder how can i make my eclipse auto-completion to use a descriptive name for each argument, since it's so helpful I think.
thanks
eclipse autocomplete
Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
– nitind
Nov 20 '18 at 22:51
1
This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
– nitind
Nov 20 '18 at 23:13
2
In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
– howlger
Nov 21 '18 at 7:17
1
While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
– nitind
Nov 21 '18 at 8:49
1
You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
– nitind
Nov 21 '18 at 8:56
|
show 4 more comments
i use eclipse as IDE for writing java programs. i can use auto-completion feature of course, for example, when i want to open a JOptionPane, auto-complete show it for me as below
as you see it just show available fitting methods, argument list, and type of each methods argument , but each argument is written as arg0, arg1,... !
but recently i watch a video tutorial and i see that auto-completion feature in lecturer system show everything like mine, except that it doesn't show arguments as arg0, arg1, ... , but give them an descriptive name! like below:
i wonder how can i make my eclipse auto-completion to use a descriptive name for each argument, since it's so helpful I think.
thanks
eclipse autocomplete
i use eclipse as IDE for writing java programs. i can use auto-completion feature of course, for example, when i want to open a JOptionPane, auto-complete show it for me as below
as you see it just show available fitting methods, argument list, and type of each methods argument , but each argument is written as arg0, arg1,... !
but recently i watch a video tutorial and i see that auto-completion feature in lecturer system show everything like mine, except that it doesn't show arguments as arg0, arg1, ... , but give them an descriptive name! like below:
i wonder how can i make my eclipse auto-completion to use a descriptive name for each argument, since it's so helpful I think.
thanks
eclipse autocomplete
eclipse autocomplete
asked Nov 20 '18 at 19:59
feel freefeel free
595
595
Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
– nitind
Nov 20 '18 at 22:51
1
This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
– nitind
Nov 20 '18 at 23:13
2
In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
– howlger
Nov 21 '18 at 7:17
1
While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
– nitind
Nov 21 '18 at 8:49
1
You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
– nitind
Nov 21 '18 at 8:56
|
show 4 more comments
Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
– nitind
Nov 20 '18 at 22:51
1
This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
– nitind
Nov 20 '18 at 23:13
2
In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
– howlger
Nov 21 '18 at 7:17
1
While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
– nitind
Nov 21 '18 at 8:49
1
You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
– nitind
Nov 21 '18 at 8:56
Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
– nitind
Nov 20 '18 at 22:51
Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
– nitind
Nov 20 '18 at 22:51
1
1
This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
– nitind
Nov 20 '18 at 23:13
This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
– nitind
Nov 20 '18 at 23:13
2
2
In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
– howlger
Nov 21 '18 at 7:17
In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
– howlger
Nov 21 '18 at 7:17
1
1
While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
– nitind
Nov 21 '18 at 8:49
While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
– nitind
Nov 21 '18 at 8:49
1
1
You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
– nitind
Nov 21 '18 at 8:56
You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
– nitind
Nov 21 '18 at 8:56
|
show 4 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400665%2feclipse-auto-completion-feature-with-descriptive-argument-names%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400665%2feclipse-auto-completion-feature-with-descriptive-argument-names%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is your project's Java Build Path's JRE System Library pointing to a JRE or a JDK?
– nitind
Nov 20 '18 at 22:51
1
This is a question about the project's setup. In the Package Explorer, you should see an entry for a "JRE System Library" that refers to the Java runtime your own code is compiled against. Is it a JDK or a JRE? Since you're developing Java, it's best if it's a JDK.
– nitind
Nov 20 '18 at 23:13
2
In Window > Preferences: Java > Installed JREs choose a JDK instead of a JRE as default JRE. A JDK is a JRE plus the sources and some tools for Java development. A JDK is required here to show the parameter names and the Javadoc.
– howlger
Nov 21 '18 at 7:17
1
While there are ways to attach documentation and sources to a JRE from the mentioned preference page, this stuff tends to work correctly and automatically with a JDK. You're developing Java code, you should have the JDK anyway.
– nitind
Nov 21 '18 at 8:49
1
You install a JDK separately, there is no upgrading from a JRE to a JDK. Once installed, use the preference page to set up an entry for the JDK and then right click on the JRE System Library in your project and change it to use the JDK entry.
– nitind
Nov 21 '18 at 8:56