I folowd the steps on internet but i then i saw that it was for older version Of photoshop: CS5 or so it didn't really workt fine then searched for the new version but I didn't find a thing to do it on PS CC please help me out
Select file ---> new.
It should be small (in terms of height x width). Image you are creating here will duplicate itself to form your pattern in the later stage.
For this example, I’ll be using 8×8 pixel canvas, zoomed them up and create a small pattern like this.
Draw the pattern
Pattern at 3200 % zoom view.
Edit --> Define Pattern
Specify the pattern name
Using Custom Pattern
Create a new canvas to try out the custom pattern. With your new canvas selected, Select Edit -> Fill.
In the Fill dialog box, select Pattern from the dropdown, find the pattern you’ve just created in Custom Pattern and click OK.
The canvas will now be filled with pattern you have just created.