Showing posts with label Visual Studio Code. Show all posts
Showing posts with label Visual Studio Code. 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, May 13, 2019

Setting up Visual Studio Code for working with ROS C++ on Ubuntu

In order to use Visual Studio Code on Ubuntu to develop ROS (Robotic Operating System) C++ packages, a couple of Visual Studio Code extensions can be helpful.

If they are not already installed, simply run Visual Studio Code and install the following extensions:
  • Microsoft C/C++ extension
  • ROS extension

Another thing that can be helpful is to configure the Microsoft C/C++ extension to include the ROS header include files. If the extension is unable to locate the ROS header files, the code editor will show wavy green lines under the header files, as shown in the screenshot below.

To get rid of these wavy lines, the C/C++ properties (c_cpp_properties.json) file need to be edited to add in the ROS header include directory, e.g. /opt/ros/melodic/include/.

The following screenshots show the c_cpp_properties.json file and the includePath configuration array.

Append the path "/opt/ros/melodic/include" to the includePath array variable as shown below.

Then save and restart Visual Studio Code. Observe that the green wavy lines are no longer displayed.

Sunday, May 14, 2017

Resolving Python Module 'numpy' has no 'xxxx' member error message in Visual Studio Code

While writing some Python code in Visual Studio Code that calls some Numpy classes, Pylint error messages appear complaining about non-existing Numpy members, e.g. the log2 method, and red wavy lines underline the offending code, as shown in the screenshot below.


One way to clear this up is to get Pylint to white-list Numpy using Visual Studio Code's Settings.

  1. In Visual Studio Code, select File | Preferences | Settings.

    The settings.json file is displayed in the editor.

  2. Click the Workspace Settings tab.

    The settings appear in the editor.

  3. In the editor, type in the following and save the file.

    { "python.linting.pylintArgs" : [ "--extension-pkg-whitelist=numpy" ] }



  4. Close and reopen the folder in Visual Studio Code.

    The missing member messages and the red wavy underlines no longer appear.