Integrating with Visual Studio Codeď
The CMake based installation script can be tightly integrated with any modern IDE. This section shows the procedure for Visual Studio Code (VSCode).
Before starting with the configuration process open a terminal and run the following commands. Anotate their outputs.
conda activate scipion3 && echo $CONDA_PREFIX
scipion3 printenv | grep SCIPION_SOFTWARE
In visual studio codeď
In the âExtensionsâ tab install âC/C++ Extension Packâ.
File -> Open Folder -> Navigate to âxmippâ directory (previously cloned).
Click âYes, I trust the authorsâ.
File -> Save workspace as⌠-> Select a directory outside the Xmipp folder.
Go to 5. File -> Preferences -> Configuration
Select the âWorkspaceâ tab
Navigate to the âCMake Toolsâ section
- Set the following options
âCmake: Configure Argsâ add -DCMAKE_PREFIX_PATH=CONDA_PREFIX (replace CONDA_PREFIX with the value obtained previously)
âCmake: Configure Argsâ add -DCMAKE_SKIP_RPATH=ON
âCmake: Configure Environmentâ add: Element: Python3_ROOT_DIR Value: CONDA_PREFIX (replace CONDA_PREFIX with the value obtained previously)
âCmake: Configure Environmentâ add: Element: SCIPION_SOFTWARE Value: SCIPION_SOFTWARE (replace SCIPION_SOFTWARE with the value obtained previousy)
âCmake: Install prefixâ: /path-to/xmipp/dist (Absolute path)
Go to the CMake tab on the left.
In âPinned commandsâ add âInstallâ
Once VS Code is set up, the Xmipp installation process can be launched though the newly pinned âInstallâ command. In addition, individual files or sub-projects may be compiled for quick assessment of code.