A
scenario setting method and an electronic device are provided, and relate to the field of terminal technologies. In an electronic device control process, a real-time
scenario is automatically generated in response to an operation of a user, thereby reducing a
scenario setting difficulty and improving user experience. The method includes: A control device displays a first interface (501, 701, 801, 901, 1001, 1101, 1102, 1103, 1201, 1301, 1401, 1501, 1601, 1701, 1801, 1901, 2001, 2101, 2201, 2301, 2401, 2501, 2601, 2701, 2801, or 2901) including a trigger area (71, 81, 91, 101, 111, 131, 141, 151, 161, 171, 181, 191, 201, 211, 224, 261, 263, 271, or 281), displays, in the trigger area (71, 81, 91, 101, 111, 131, 141, 151, 161, 171, 181, 191, 201, 211, 224, 261, 263, 271, or 281), a first identifier of a first device that executes a first intention, and displays, outside the trigger area, a second identifier of a second device that does not execute a second intention. The control device generates, in response to an operation of the user, a scenario corresponding to the first interface (501, 701, 801, 901, 1001, 1101, 1102, 1103, 1201, 1301, 1401, 1501, 1601, 1701, 1801, 1901, 2001, 2101, 2201, 2301, 2401, 2501, 2601, 2701, 2801, or 2901), where the scenario includes indicating the first device to execute the first intention, and indicating the second device to cancel execution of the second intention.