Categories


Authors:
mjparme

ThisInserter

Products: IntelliJ IDEA

Vendor: Michael Parmeley

Email:

Website: http://code.google.com/p/this-inserter/

Bugtracker page

Add explicit this. to the front of member variables and method calls
Downloads: 2296
Rating:
Participated in rating: 0
Version Compatible builds Date
1.4 111.69 08.10.2012 Download
1.3 99.18 23.04.2011 Download
1.2 93.13 08.10.2010 Download
1.1 80.9013 20.05.2009 Download
1 update is hidden show all updates
Screenshot #13985

Recent change notes

Plugin has been updated to work with IntelliJ 11.x

General usage instructions

The plugin is available from the Generate menu (Windows: Alt+Insert, Mac: Ctrl-n). Select it from the menu and it will do its thing. There are currently no configuration options.

Comments:

mjparme
2009-05-20 01:18:50
As mentioned in the comment above IntelliJ does have a built-in inspection to add \"this.\" in front of member variables that I didn\'t know about when I wrote this plugin. The inspection is turned off by default. To turn it on go to File->Settings->Errors, then under IDEA Profiles click on Default. Then in the search box search for \"not qualified with\" and you should see it.

However, the inspection only works on member variables. The plugin does member variables and methods. So if you also want to append \"this.\" on the front of methods this plugin is still useful.
.
mjparme
2009-05-20 01:13:01
As mentioned in the comment above IntelliJ does have a built-in inspection to add "this." in front of member variables that I didn't know about when I wrote this plugin. The inspection is turned off by default. To turn it on go to File->Settings->Errors, then under IDEA Profiles click on Default. Then in the search box search for "not qualified with" and you should see it.
.
BasLeijdekkers
2009-03-05 14:24:05
You might also want to look at the "Instance field access not qualified with 'this'" inspection from InspectionGadgets which is included with an IntelliJ IDEA install.
.