Pycharm app keeps opening my html files and links [duplicate]

I had the same issue. Here is how I fixed:

It seems that using the OpenWith option only works once. To change the default application permanently I did the following:

Select an HTML file and right-click on it. Then you select Get Info and in the Open with section, select a browser as the default application and click on the Change All... button.

I hope it helps