Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6693039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:56:12+00:00 2026-05-26T05:56:12+00:00

Eclipse has the handy option to hit f3 when the cursor is on a

  • 0

Eclipse has the handy option to hit f3 when the cursor is on a method to open the declaration. However, is there a way (via some plugin or otherwise) to do something similar, but inline the method body instead of taking you to the declaration? For example, let’s say you have two classes:

public class Foo {
    public static void main(String[] args) {
        Bar b = new Bar();
        System.out.println("Value: " + b.value());
    }
}

public class Bar {
    public int value() {
        return 5;
    }
}

Then, if you put your cursor on “b.value()” and choose this option, it would display something like the following:

public class Foo {
    public static void main(String[] args) {
        Bar b = new Bar();
        System.out.println("Value: " + b.value() {
            return 5;
        });
    }
}

Ideally also being able to edit the method body for value(), and also allowing me to do the same to any further method bodies that may be within value().

My main motivation for this is to more quickly understand what foreign code is doing. I’m also open to any other IDE that supports this feature.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:56:13+00:00Added an answer on May 26, 2026 at 5:56 am

    You will want to look at the declaration view (Window -> Show View -> Declaration). The contents of the declaration view defaults to the declaration of whatever your caret is currently selecting.

    Alternatively, you are supposed to be able to use Shift-Hover to get a pop-up of the declaration (but I am currently having trouble getting that behavior to work).

    There is no way to edit the code AFAIK.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

is there any way of quick jump to the last modified line? eclipse has
I really like the way Eclipse has pop-up Javadoc documentation for the various Java
My everyday IDE is Eclipse which has a wonderful Open Resource feature (CTRL+SHIFT+R or
As far as I know there's Erlang plugin for NetBeans and Eclipse. Which one
Eclipse has an easy way to find all references to a variable, but is
Eclipse has a great option for the debug Watch window called Show Logical Structure
Kris shows a demo in jbpm where eclipse has a option to create jBPM2
Eclipse has a feature, where it guesses arguments for a method call, based on
With P2 Eclipse has the option of using bundle pooling to reuse common bundle
I notice the Eclipse has a very handy feature of double click: it can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.