Usually, developers will love to do things in the terminal. So in the Windows terminal, we will be able to create a directory and list out existing directories but editing the file command line is not easy. We can launch the file in Notepad or some other editor, but it will be like using one of the editor apps, which will launch another window.
So to get a traditional feeling of the terminal, we can install the nano editor into Windows, using the winget command and we can use nano editor which will open the file in the terminal itself and we can edit it.
To install the nano use the below command.
winget install GNU.nano
To edit the file use the below command.
nano <filename>.<extenstion>
Let me know if you know of any other method, that will allow you to edit the file in the terminal.