So what things do we really need in a coding environment? Feature lists vary from app to app, but there are a core set of features that makes coding easier: Remove ads Requirements for a Good Python Coding Environment Compared to an IDE, a good dedicated code editor is usually smaller and quicker, but often less feature rich. The very best ones interact with source control systems as well. Most good code editors can execute code and control a debugger. In contrast, a dedicated code editor can be as simple as a text editor with syntax highlighting and code formatting capabilities. You may also need advanced knowledge to use them properly. They can, therefore, be large and take time to download and install. Most IDEs support many different programming languages and contain many more features. An editor designed to handle code (with, for example, syntax highlighting and auto-completion).As the name implies, IDEs integrate several tools specifically designed for software development. Lastly, none of these options are mutually exclusive, so you can try them out on your own with very little penalty.īut first… What Are IDEs and Code Editors?Īn IDE (or Integrated Development Environment) is a program dedicated to software development. We’ll call out some Whys and Why Nots for each. To make things easier, we’ll break our list into two broad categories of tools: the ones built exclusively for Python development and the ones built for general development that you can use for Python. We can’t pick what works best for you and your process, but we can explain the pros and cons of each and help you make an informed decision. Using an IDE, or even just a good dedicated code editor, makes coding fun-but which one is best for you?įear not, Gentle Reader! We are here to help explain and demystify the myriad of choices available to you. Writing Python using IDLE or the Python Shell is great for simple things, but those tools quickly turn larger programming projects into frustrating pits of despair. Watch it together with the written tutorial to deepen your understanding: Finding the Perfect Python Code Editor "ExternalConsole": Whether to display the console window during debugging, set to true to display the consoleįor a more detailed explanation, see The description of the launch.json file in GithubĪfter all the above steps are completed, first switch to two_sum.cpp, the shortcut key command+shift+b to compile the source file, after the compilation is successful, press F5, we can debug happily.Watch Now This tutorial has a related video course created by the Real Python team. "Cwd": the directory where the current debugging is located "StopAtEntry": If set to true, the program will pause at the program entry "Program": the path of the program to be debugged "Request": Request configuration type, which can be launch (start) or attach (attach) "Name": The configuration name, which will be displayed in the drop-down menu of the startup configuration But Xiaobairu I still don't use these functions, so after the file is automatically generated, if it is only used simply, there is no need to modify it temporarily. c_cpp_properties.jsonįirst, the shortcut key shift+command+p opens C/Cpp: Edit configurations, it will automatically generate c_cpp_properties.json, this file is mainly to facilitate the addition of other path header files and some code positioning functions. , Oops hello, my irritable temper and violent temper, all of it gushes out all at once (heart-stuck), forcing me to take a good look at some of the instructions in the official documents, this time I finally got some basic setting parameters It's a lot of trouble. Many of them are directly pasted without saying anything. As a result, the quality of the information on the Internet is uneven and almost all of them are useless. Because I am impatient, I always think that there must be a ready-made configuration file on the Internet. ![]() The next step is pleasant DebugTime, I mainly spent a lot of time configuring these files. #includeĪbout the three configuration files-Debug Among them, the folder name of my workspace is vscode_c, and because of Code Runner's credit, you only need to click the run button in the upper right corner to run the program. The code is as follows, and the vscode operation is shown in the figure. Then, create a new text in the text editing area, write a simple code, and save it as two_sum.cpp to the workspace folder. After the C/C++ plug-in is installed, you first need to add the corresponding folder to the corresponding workspace of VS Code to facilitate subsequent code debugging, as shown in the figure: Original address VS Code C/C++ environment configuration Add workspace folderĪlthough the code ability is very weak, the environment should be well equipped. About the three configuration files-Debug.VS Code C/C++ environment configuration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |