Remove wordpress asking for FTP

There are many time wordpress has this annoying thing asking for FTP username and password when you try to install the plugins or themes..

here is a simple way give direct access to the file systems.

Paste the following line in your wp-config.php 

define( ‘FS_METHOD’, ‘direct’);