VS 2019 and older versions of TFS
Visual Studio 2019 works with Azure DevOps Server 2019, TFS 2017, TFS 2015, TFS 2013, TFS 2012 and TFS 2010 SP1.
Source: https://docs.microsoft.com/en-us/visualstudio/releases/2019/compatibility#team-explorer-azure-devops-server-and-team-foundation-server
I assume it works with TFS 2018 as well, even it is not mentioned in the article.