Menu
Question or issue on macOS:
I want to set VS Code to be my default git editor for commands such as rebase. This doesn’t seem to be documented on the VS Code website. I’ve found a SO question about doing it for Windows, which sounds like it has mixed success: How to use Visual Studio Code as Default Editor for Git
Has anyone managed this on OSX?
OK, now that you have git installed we are going to get geeky and use a terminal in both Windows and Mac. To get to the git terminal in Windows go to the Start button and search for ‘git’. Click on ‘Git Bash’ to get to your git command line interface. For Mac just open a terminal by going to Applications Utilities Terminal. There’s even support for Git and Subversion. Then you’ll want to see what your code looks like. Use our WebKit Preview, which includes a web inspector, debugger, and profiler. Then, on top of that, we added AirPreview, a revolutionary feature that lets you use your iPad and iPhone with Code Editor to Preview pages as you code on your desktop.
How to solve this problem?
- GitHub - BoostIO/Boostnote: A markdown editor for developers on Mac, Windows and Linux.
- A free Git client for Windows and Mac. Sourcetree simplifies how you interact with your Git repositories so you can focus on coding. Visualize and manage your repositories through Sourcetree's simple Git GUI.
Solution no. 1:
Update for our VS Code 1.0 release:
This is now possible! All you need to do is to configure Code as the git editor using the newly introduced
--wait
option from the command line.Solution no. 2:
This work for me.
Install “code” from VSCode commander (Shift + Command + P)
Search for:
Shell Command: Install ‘code’ command in ‘PATH’
Install it.
after that… run commands on terminal for config git with new editor:
Solution no. 3:
Install “code” from VSCode commander(Shift + Command + P)
then use these 2 lines in your terminal,
if you want to see local git config,
Donate
Solution no. 4:
Under OS X El Capitan (10.11.4) I was able to setup the whole thing:
- Install Visual Code Studio on you OS X (make sure it’s inside Applications folder
/Applications
) - Create a link with name
vscode
that links to your Visual Studio (inside Applications folder)using below command (be sure to use correct paths).
** If ~/bin folder doesn’t exists, just create it:
cd ~ && mkdir bin
If folder ~/bin exists just create a link:
ln -s
/Applications/VisualStudioCode.app/Contents/Resources/app/bin/code
~/bin/vscode
- Restart your terminal/shell and you should be able to open Visual Studio Code by typing
vscode
in terminal window.
vscode
- Visual Studio should open. If not and you have error. Add
~/bin/
to your PATH under OS X. Follows this (How do I add ~/bin to my path?) - Edit global git config file with
~/.gitconfig
and set editor usingcode
name. In my case it looks like this:
[core]
editor = vscode –wait
OR type
git config –global core.editor “vscode –wait”
- Save file & restart terminal window. That’s it!. Now you should be able enter commits descriptions using Visual Studio Code!
Hope this helps!
The editor of choice is still Emacs, but it is not the only one.Emacs
SLIME is the Superior LispInteraction Mode for Emacs. It has support for interacting with arunning Common Lisp process for compilation, debugging, documentationlookup, cross-references, and so on. It works with many implementations.
Portacle is a portable andmulti-platform Common Lisp environment. It ships Emacs25, SBCL,Quicklisp, SLIME and Git.
Installing SLIME
SLIME is in the official GNU ELPA repository of Emacs Lisp packages(in Emacs24 and forward). Install with:
Since SLIME is heavily modular and the defaults only do the bare minimum (noteven the SLIME REPL), you might want to enable more features with
For more details, consult thedocumentation (also availableas an Info page).
Now you can run SLIME with
M-x slime
and/or M-x slime-connect
.See also:
- https://wikemacs.org/wiki/SLIME - configuration examples and extensions.
Using Emacs as an IDE
See “Using Emacs as an IDE”.
Setting up Emacs on Windows or Mac
See “Setting up Emacs on Windows or Mac”.
Vim & Neovim
Slimv is a full-blownenvironment for Common Lisp inside of Vim.
Vlime is a Common Lisp devenvironment for Vim (and Neovim), similar to SLIME for Emacs and SLIMVfor Vim.
cl-neovim makes it possible to writeNeovim plugins in Common Lisp.
quicklisp.nvim is a Neovimfrontend for Quicklisp.
Slimv_box brings Vim, SBCLand tmux in a Docker container for a quick installation.
Eclipse
Dandelion is a plugin for theEclipse IDE.
Available for Windows, Mac and Linux, built-in SBCL and CLISP supportand possibility to connect other environments, interactive debuggerwith restarts, macro-expansion, parenthesis matching,…
Lem
Lem is an editor tailored for Common Lisp development. Once youinstall it, you can start developing. Its interface resembles Emacsand SLIME (same shortcuts). It comes with an ncurses and an Electronfrontend, and other programming modes: Python, Go, Rust, JS, Nim,Scheme, HTML, CSS, directory mode, a vim layer, and more.
Atom
See SLIMA. This packageallows you to interactively develop Common Lisp code, turningAtom into a pretty good Lisp IDE.
Sublime Text
Sublime Text has now good support forCommon Lisp.
First install the “SublimeREPL” package and then see the optionsin Tools/SublimeREPL to choose your CL implementation.
Then Slyblime ships IDE-likefeatures to interact with the running Lisp image. It is animplementation of SLY and it uses the same backend (SLYNK). Itprovides advanced features including a debugger with stack frameinspection.
VSCode
VSCode with commonlisp-vscode extensionsupports running a REPL, evaluate code, auto indent, code completion, go to definition, documentation on hover, etc.It’s based on cl-lsp language server and it’s possible to write LSP client that works in other editors.
Geany (experimental)
Geany-lisp is an experimentallisp mode for the Geany editor. It features completion of symbols,smart indenting, jump to definition, compilation of the current file andhighlighting of errors and warnings, a REPL, and a project skeleton creator.
Notebooks
common-lisp-jupyter is a Common Lispkernel for Jupyter notebooks.
There is also Darkmatter, a notebook-styleCommon Lisp environment, built in Common Lisp.
REPLs
cl-repl is an ipython-like REPL. It supports symbol completion, magic and shell commands, editing command in a file and a simple debugger.
You might also like sbcli, an even simpler REPL with readline capabilities. It handles errors gracefully instead of showing a debugger.
Git Editor For Mac High Sierra
Others
QtKeychain
For reviews of plugins for more editors, including free versions ofproprietary ones (LispWorks, Allegro), seeArticulate Common Lisp.
Page source: editor-support.md