CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    VS2019 (single-clicking a source file)

    I recently updated to VS2019 Community Edition after previously using VS2015 (and various earlier versions). As usual, when I load a C++ project into my VS workspace I see a pane at the RHS called Solution Explorer. However, if I click on any source file in the Solution Explorer it automatically opens (previously I used to have to double-click). I must admit, I prefer the older method!! Is there a setting somewhere so I can stop a file from opening if I simply single-click it?
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: VS2019 (single-clicking a source file)

    Near the top of the solution explorer there is a row of icons. Hover over each icon until you find the one with the 'Preview Selected item" tooltip. Click on that icon once to unselect it (it toggles).
    Last edited by Arjay; July 18th, 2019 at 03:12 PM.

  3. #3
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: VS2019 (single-clicking a source file)

    That fixed it Arjay, thanks...
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  4. #4
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: VS2019 (single-clicking a source file)

    Another irritation (that's slightly related...)

    If I had a source file open (with some earlier versions of Visual Studio) I could edit the file outside of the VS editor and then - when I clicked back in the editor, it would pop up a message to say that the file had been edited outside of the VS editor and it'd ask me if I wanted to re-load the edited version. But that doesn't seem to happen any more with VS2019. Or is there some setting somewhere that I need to enable?
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: VS2019 (single-clicking a source file)

    Yes, there is a setting. Probably under options/editor.

  6. #6
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: VS2019 (single-clicking a source file)

    Thanks Arjay - I eventually found it in:- Options->Environment->Documents
    "A problem well stated is a problem half solved.” - Charles F. Kettering

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured