UK tax resident living in Portugal

Hi :wave:t2:
Iā€™m currently working remote for a tech company based in Austria but with a contract in the UK (I live in Scotland). Iā€™m planning to move into Portugal and would like to know if I can keep my EU settle visa if I keep my contract in UK (paying all taxes there).
Portugal and UK have a tax treaty which prevent double taxation, so I believe I can avoid the double taxation. Any thoughts?
Thank you in advance