Open CLion with a single Python file

已回答
Hello,

I use CLion mostly for Rust and C++ dev, but sometimes I need to create/debug a small Python script or Solidity smart contract. With appropriate plugins, CLion does offer the features I need, but I have to create a dummy C++/Rust/(or other irrelevant stuff…) to open the IDE, and then add the single Python/Solidy file I need.

In this case, the C++/Rust project is absolutely pointless… Is there a simple way to do that?

Another variant of the same question: Is it possible to customize the “New Project”/“Other” template list, and add the custom templates I need?

Thanks

0

Hi!

Indeed, you can't create Python project from the New Project wizard. CLion is a C/C++ IDE mostly. It has Python support, which is intended for those C/C++ projects that also have some Python code.

Creating a CMake project and adding your Python files in there is the only option. 

0

请先登录再写评论。