Skip to content

Single File Execution Plugin is a plugin for CLion (C/C++ IDE on IntelliJ platform provided by Jetbrain).

License

Notifications You must be signed in to change notification settings

corochann/SingleFileExecutionPlugin

Repository files navigation

SingleFileExecutionPlugin

CLion plugin to execute single file .c/.cpp file quickly.

Description

CLion is a C/C++ IDE on IntelliJ IDEA platform provided by JetBrains.

CLion is working on CMake platform, so when you want to run a single file with main() function you need to configure CMakeLists.txt file everytime. This plugin helps you to add a configuration to quickly run a single .c/.cpp file.

Links

Installation

C/C++ Single File Execution plugin is uploaded on JetBrains repositry, so you can download by navigating [File] → [Settings] → [Plugins] tab → click [Browse repositries...] in CLion.

You can find and install C/C++ Single File Execution plugin.

install_form_repositry

 

How to use

  1. Create or show C/C++ source code you want to run on the editor.
  2. Right click on the editor.
  3. Select "Add executable for single c/cpp file".

That's all! Plugin automatically insert add_executable to CMakeLists.txt with proper path for you.

sample_example2

After that, you can start coding and once it's done, run it by selecting proper executable name on the top-right panel in CLion.

sample_example_run_bar

Configuration

single_file_execution_settings

Little configuration is available from [File]  → [Settings] → [Tools] tab > [Single File Execution Plugin].

You may specify the executable name. As a default, it will use a name depending on the source code file name. In this case, every time you add a new source code and insert add_executable, new executable name will be added. Build configuration tab can be messy in this case as the number of files increases.

Another way is to use "fixed" executable name here (not use %FILENAME%), in that case you can always run single source code file with same executable name.

 

About

Single File Execution Plugin is a plugin for CLion (C/C++ IDE on IntelliJ platform provided by Jetbrain).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages