The following are not a sequence of steps. You can try each one of these and something might work.
Check if you have intellisense enabled.
If the Intellisense is not working only for certain databases.Keep the top check box enabled but remove the underline errors and outline statements. Open a new query window and check.
Disable SQLCMD mode.
Refresh Local Cache.