Follow the following path
Tools --> Options --> Text Editor --> All Languages --> CodeLens
Note: This is not available for the community version