Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jim Janney Newsgroups: comp.lang.java.programmer Subject: Re: Java return intellityping? Date: Fri, 02 Nov 2012 08:49:01 -0600 Organization: parallel sentence structure Lines: 20 Message-ID: References: <4c12f491-2b3f-421b-b420-60d4220237d1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="75975abe3fe3503ca7350803ab98e478"; logging-data="29981"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2QRZIY5iXAswBx3vdDh+3" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:yaQ6SzF7Xec7arK006xw6Ikw0lo= sha1:b3smk7jOfOzbLrRhrXbzsDiFhgY= Xref: csiph.com comp.lang.java.programmer:19600 bob smith writes: > You know how there are all kinds of typing shortcuts nowadays? > > Let's say there's code like this: > > m_socket.getOutputStream(); > > Is there some general way to get your editor (i.e. Eclipse) to create a variable of the correct type and assign it like so: > > OutputStream outputStream = m_socket.getOutputStream(); > > I feel like this could save a lot of work. In Eclipse, use Quick Assist - Assign to local variable Usually bound to Ctrl+2, L -- Jim Janney