Add the following line to your theme’s functions.php:
add_filter( 'wp_default_editor', create_function( '', 'return "html";' ) );
Use “html” to set the Text editor tab as default (as shown above), or “tinymce” to set the Visual editor tab as default.