Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

Use Google Gemini Pro as your AI Coding Assistant in Visual Studio Code Editor

1 min read

The Google Gemini Pro API, with its release in December 2023, marked a significant advancement in the field of AI for developers. It’s designed to assist in various aspects of coding and development, making it a valuable tool for those looking to integrate advanced AI capabilities into their applications.

Google AI Studio and Google Cloud Vertex AI are platforms provided by Google to access and utilize the Gemini Pro API

To obtain a Google Gemini Pro API key, you need to follow a series of steps that begin with registering for API access on Google’s developer platform. Here’s a general outline of the process:

Install Visual Studio Code: If you haven’t already, download and install Visual Studio Code (VS Code)

Obtain a Google Gemini API Key:

  • Visit the Google AI website, typically at ai.google.dev.
  • Click on Get API key in Google AI Studio
  • Goto the Google AI Studio and click on Get API Key and generate a new API key for the Gemini API. This may involve creating a project and enabling the Gemini API for that project.
  • Once generated, copy the API key for later use.

Install the Code GPT Extension in VS Code:

  • Open VS Code.
  • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
  • In the Extensions view, search for “Code GPT” which supports Google Gemini and various other LLM models like OpenAI, Mistral,Anthropic etc.
  • Find the correct extension (it might be named something like “Code GPT:Chat & AI Agents”) and click on the ‘Install’ button.

Configure the Code GPT Extension to access Gemini API

Open the Chat Box from the Left sidebar and Configure the Provide as Google AI Studio and Model as gemini-pro

Once the Configuration is done it will be asking for Gemini API Key. If not goto the Set Connection as shown below and Enter the copied Gemini API Key.

Use the Chat Box to Access the Coding Prompts and Get your prompts converted into Code.

Keep your VS Code and the extension updated to ensure compatibility and access to the latest features.

You can also use the CodeGPT Extension to Fix the bug/ troubleshoot your code, prepare documentation and even as a code explainer. Bascially Gemini Pro API will be acting as your coding assistance along with you in increasing your coding productivity. This makes it an essential tool for anyone looking to harness the power of AI in coding and application development.

Rajandran R Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, USDINR and High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Strongly believe that market understanding and robust trading frameworks are the key to the trading success. Writing about Markets, Trading System Design, Market Sentiment, Trading Softwares & Trading Nuances since 2007 onwards. Author of Marketcalls.in)

[Live Coding Webinar] Build Your First Trading Bridge for…

In this course, you will be learning to build your own trading bridge using Python. This 60-minute session is perfect for traders, Python enthusiasts,...
Rajandran R
1 min read

How to Place Orders Concurrently using ThreadPoolExecutor – Python…

Creating concurrent orders is essential for active traders, especially those handling large funds, as it allows for executing multiple trade orders simultaneously, thereby maximizing...
Rajandran R
2 min read

Host your Python Flask Web Application using pyngrok and…

Ngrok offers several significant advantages for developers, especially when it comes to testing applications or hosting machine learning models. Ngrok allows you to expose...
Rajandran R
1 min read

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More