Thx for all the answers

I didnt find the antialias setting anywhere so thats why it didnt work.
My line tool options was set to "shape layers" all I had to do was to
switch to "fill pixels" instead and there it was

Sounds simple but its not that easy to find if you are a newbie.