Skip to main content

Anaconda Prompt and Sublime Text - Windows (Add to right click)

Source: https://gist.github.com/jiewpeng/8ba446acf329b1801bf91db767d179ea

Open Regedit.
Win + R > regedit.exe > Enter.

Go to: Computer\HKEY_CLASSES_ROOT\Directory\Background\shell\
Add a key named AnacondaPrompt and set its value (Default) to "Anaconda Prompt Here" (or anything you'd like it to appear as in the right click context menu)

Add a key under this key, called command, and set its value to:
cmd.exe /K C:\Users\rb\Anaconda3\Scripts\activate.bat
(may have to change the activate.bat file to whereever Anaconda is installed)

No need to restart.

To setup conda env to another dir:
https://stackoverflow.com/questions/67610133

conda config --show
conda config --add pkgs_dirs D:/.conda/pkgs
conda config --add envs_dirs D:/.conda/envs
conda config --remove envs_dirs  C:/Users/rb/.conda/envs
conda config --remove envs_dirs  C:\Users\rb\AppData\Local\conda\conda\envs

Sublime :
Create a new file called foo.reg, paste the following text & execute it.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Open In Sublime]
@=""

[HKEY_CLASSES_ROOT\Directory\shell\Open In Sublime\command]
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%1\""

Github Theme Sublime:
https://github.com/mauroreisvieira/github-sublime-theme

For Settings:
Preferences >> Settings

{
"ignored_packages":
[
"Vintage",
],
"theme": "GitHub Dark.sublime-theme",
"color_scheme": "GitHub Dark.sublime-color-scheme",
"font_face": "Fira Code",
    "highlight_line": true,
    // "margin": 20,
    // "line_padding_bottom": 1,
    // "line_padding_top": 7,
    "caret_extra_bottom": 12,
    "caret_extra_top": 12,
    // "hide_tab_scrolling_buttons": true
}