You can use the standard pen tool to draw any style of line or shape by creating small segments joined by anchor points.

If you click a point by mistake, you can delete it by clicking it once to select it, then pressing ← Backspace or Del.

Continue clicking points until you’ve finished your line.

If you want to create a complete shape, click the first anchor point to close the path. If you didn’t draw a shape that must be closed, press ⌘ Command (Mac) or Control (PC) as you click anywhere on the canvas that is not on the line.

For a C-shaped curve, click and drag the mouse in a direction that’s opposite to the direction line, and then release the mouse button to see the curve. For an S-shaped curve, click and drag the mouse in the same direction as the first direction line, then release the mouse button.

As with straight lines, if you drop an anchor by mistake, click it once to select it, then press ← Backspace or Del. To adjust a segment, select the Direct Selection tool by clicking and holding the black arrow tool in the toolbar, and then choosing Direct Selection, select the curve to bring up its anchor points, then drag them the desired locations.

The curvature pen tool is a new tool that helps you easily create paths to draw curved lines and shapes. You’ll need to be using Photoshop CC 2018 or later to use this tool.

You can fine-tune the shape even more by placing additional anchor points along the line, and then clicking-and-dragging them to the desired location.

If you want to create a complete shape, click the first anchor point to close the path.

If you prefer to freehand-draw your lines, this tool is for you. You can click and drag to draw any line or shape as though you were using the paintbrush tool, except you’ll be drawing a path with automatically-added anchor points. The freehand pen has a “magnetic” option that’s great for tracing edges.

You can adjust the options for the magnetic pen by clicking the small down-arrow to the left of “Magnetic” in the options bar.

If the line isn’t snapping to the edge of the object properly, you can periodically click around edge as you trace to drop more fastening anchors.