# rospy error in VS Code

Hello. I'm trying to write a subscriber program with Python. When i try to import rospy VSCode shows the error: Import "rospy" could not be resolved.

I found #q385096 and #q382798. In the second one, suggested solution is to edit the settings.json file. I changed the file in the ~/.config/Code/User and created another in the workspace(in .vscode). But nothing changed. Is there any alternative solution for this or am i doing something wrong? I'm using ROS noetic.