Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Monday, July 20, 2026

VSCode: Workaround to sign in to Windsurf Plugin (formerly Codeium) version 1.48.2


 

If you installed the Windsurf Plugin in Visual Studio Code recently and tried to login to the AI code completion service, it would redirect to a web site with no apparent means to authenticate the plugin. I found a workaround to generate the authentication token for VSCode from the Windsurf Neocodeium Github at https://github.com/monkoose/neocodeium.

 The following steps are what I did to authenticate the plugin:

  1.  In VSCode, install the Windsurf Plugin and tap the Login to Windsurf button.

    The prompt may appear


     
  2. Tap Open and the browser will redirect to the Windsurf web site.

  3. If necessary, log into your account.

  4. In the browser, enter the following URL https://windsurf.com/enterprise/account/login?redirect_uri=vim-show-auth-token

    The authentication token is generated.


  5. Copy the token into the clipboard.

  6. In VSCode, press CTRL-SHIFT-p to open the command prompt.



  7. In the prompt, type in Windsurf provide authentication token and press ENTER.

    The command prompt appears


  8. Paste in the generated token into the prompt. Press ENTER.

    If all goes well, the message Successfully logged in appears.


  9. You should now be able to use the AI code completion in VSCode.

 

Monday, September 23, 2019

Installing Vim-youcompleteme for Ubuntu 18.04

Modern text editors in IDE such as Visual Studio comes with a useful feature so-called Intellisense or automatic text completion. The venerable vi text editor can also have this feature enabled by installing and configuring suitable plug-ins such as vim-youcompleteme. I thought it might be fun using this and found a lot of methods to get it installed and running on Ubuntu 18.04, including fiddling with the .vimrc file. But the simplest way I found was to simply do the following:
  1. In a Terminal, run the command:

    $ sudo apt install vim-youcompleteme
  2. Next, run the command:

    $ vim-addon-manager install youcompleteme
Now, when editing a code file, vi will pop up an auto-completion list as you type, as shown in the screenshot below.