How to use Grammarly in VScode
How to use Grammarly in VScode

VScode + Grammarly

How to use Grammarly in vscode?

Write markdown-based documentation with Grammarly and speed up your written workflow in vscode.

Published in
3 min readOct 5, 2022

--

Grammarly is a great AI-based typing assistant service that helps to write better English. Grammarly help to check spell, grammar, punctuation, clarity, and engagement.

Without Grammarly, mainly Asians do not write grammar and spell-free English. Some people do that, but for that, you need a lot of particles.

I recently started working on my book. My book is written with markdown and vscode. I do not find a way to solve my problem, but recently I found a vscode Extension that solves my problem.

Demo of the Grammarly vscode extension
Demo of the Grammarly vscode extension

All the code is available on GitHub.

Steps

  1. Install Grammarly vscode extension
  2. Login with a Grammarly account
  3. Config the Grammarly vscode extension

Install Grammarly vscode extension

The Grammarly vscode extension name is Grammarly and maintains by Rahul Kadyan.

How to install Grammarly vscode extension?

The first setup is to install Grammarly vscode extension from the vscode extension marketplace.

Open VS Code and Quick Open (Ctrl+P) new command Palette and paste the following command, and press enter.

ext install znck.grammarly

After installation is complete successfully in vscode.

Login with a Grammarly account

To log in with Grammarly, you need to open the vscode Command Palette again and run grammarly.login command in the vscode command palette. After the vscode Grammarly extension redirects the default browser, you now provide all access to the extension.

Login with a Grammarly account

Config the Grammarly vscode extension

In the last step, you need a configuration file for Grammarly vscode extension to check the spelling and grammar in the following files.

For config, you need to create a .vscode/settings.json file in vscode and add grammarly.files.include property and define all files in the form of arrays.

// settings.json
{
"grammarly.files.include": ["**/README.md", "**/readme.md","**/CONTRIBUTING.md","chapter/*.md"]}

How to log out of Grammarly?

Log out of the Grammarly account in the vscode extension. firstly open the vscode Command Palette and run grammarly.logout command in the vscode command palette.

Logout the Grammarly account in the vscode extension

Conclusion

I used Grammarly vscode extension for vscode last five to six days and started writing my new book with Grammarly extension. I do not find any problem with Grammarly vscode extension.

Now my written speed is so much better than previously. First, I write a document inside vscode and markdown. Then copy my markdown file, paste it into the Grammarly file, and fix all spelling and grammar. Then paste again into the vscode markdown file. But now I d not need it.

You can share and follow on Twitter and Linkedin. If you like my work, please read more content on the officialrajdeepsingh. dev, frontend web, and sign up for a free newsletter on the frontend web.

--

--

Rajdeep Singh
FrontEnd web

Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | https://linktr.ee/officialrajdeepsingh