"in the best conceivable situation," 1840, from ideal + -ly (2). Earlier "in an archetype" (1640s); "in idea or imagination" (1590s).
ideally, this will remove all problems
idealist
idealistic
ideality
idealization
idealize
ideally
ideate
ideation
idem
idempotent
identical