Adjust YCM preview window settings.

Add a function to switch between tab and space indentation.