with a view to something/to doing something

with a view to

For the purpose of, aiming toward, as in A-frame houses were designed with a view to shedding heavy snow. This idiom was first recorded in 1728.
See also: view

with a view to

with the hope, aim, or intention of.
See also: view

with a view to something/to doing something

(formal) with the plan or hope of doing something: He’s painting and decorating the house with a view to selling it for a good price.
See also: something, view