compounds and inadequate quality of films for use as active materials. Therefore, many in situ film preparation approaches have been developed, such as polymer selfassembly [2] and in situ polymerization. [3] Of all approaches, electropolymerization has become increasingly popular because it enables fabricating uniform films rapidly. To date, many electroactive building blocks, such as carbazole, [4] aniline, [5] pyrrole, [6] thiophene, [7] and porphyrin, [8] have been reported. However, the preparation of porous polymer films through the electropolymerization method has been rarely reported.Memristor, which has wide applications in resistive access memory, [9] logic, [10] and neuro, [11] was originally envisioned in 1971 by Leon Chua and first realized with a 2-terminal device based on inorganic TiO 2 in 2008 by Williams and his coworkers. [12] Since then, memristors based on conductive/semiconductive polymers have been gradually developed due to the features of polymers, e.g., low cost, easy tunable optoelectronic properties, solvent processability, and flexibility. [9][10][11]13] With the miniaturization of electronic device, development and investigation of micropower -source which can be integrated with Si chips have been rising as the research focus. In-plane all-solid-state micro-supercapacitor (MSC) was one of the most popular candidates because of its high power density and ultrathin character. [14] In recent years, many electrode materials, especially carbon materials, have been developed in order to boost the performance. [15] However, carbon Over the past decades, numerous scientists have focused on designing complicated monomers, developing new synthesis protocols, and optimizing chemical structures for realizing high-performance organic or polymer electronics and energy storage devices. However, much less attention has been paid to ionic-and radical-rich porous organic films, which are essential components of aforementioned devices. In this study, an air-stable, large-area, freestanding, and viologen-linked ionic porous polymer (denoted as IPP-V) film is developed in situ through electrochemical polymerization. This film is applied to a device by sandwiching it between indium tin oxide (ITO) and Au (i.e., ITO/ IPP-V/Au); the device exhibits a memristive behavior with an ON-OFF current ratio of ≈2. After the IPP-V film is subjected to thermal pyrolysis at 500 °C, the as-produced film (denoted as IPP-V-500) acts as an active material for an in-plane micro-supercapacitor and exhibits a high volumetric capacitance level of up to 4.44 F cm −3 . This work not only offers a new and convenient strategy toward large-area ionic porous polymer films for memristor, but also provides a new porous polymer derived carbon film for energy storage.