Select the number 372 (hit ctrl-W with the cursor in the number, or just
double-click it), then use ctrl-alt-V to extract a variable.

You can then use ctrl-alt-L on the new constant to convert it from a
variable to a field.

Cheers,
Dan

> -----Original Message-----
> From: Calum Maclean [mailto:[EMAIL PROTECTED]]
> Sent: 26 November 2001 16:02
> To: IntelliJ Feature List (E-mail)
> Subject: [Eap-features] Extract Field on an existing field assignment
> 
> 
> I've currently got code like
>     int a = 372;
> I'd like to be able to extract the 372 into a constant.  I don't think
> there's any way of doing this - I've tried a few, in 
> particular Extract
> Field.  Could/should this be another way to use Extract Field?
> Calum
> 
> _______________________________________________
> Eap-features mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-features
> 


***************************************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify [EMAIL PROTECTED] 
immediately.

This footnote also confirms that this email message has been swept for the 
presence of computer viruses.
***************************************************************************************

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to