In Solution Explorer select the project, solution, or folder where you want to edit ignore rules.
Right-click, select Ignore Rules, and select Edit .dmignore.
Add and modify ignore rules.