Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@cspell/dict-csharp
Advanced tools
@cspell/dict-csharp is a dictionary extension for the CSpell spell checker that provides a list of C#-specific terms. This package helps developers ensure that their C# code comments, documentation, and strings are free from spelling errors by recognizing C# terminology.
C# Terminology Dictionary
This feature allows you to add a C# terminology dictionary to CSpell, enabling it to recognize and correctly spell-check C# specific terms. The code sample demonstrates how to integrate the C# dictionary with CSpell and check a piece of C# code for spelling errors.
const cspell = require('cspell');
const csharpDictionary = require('@cspell/dict-csharp');
cspell.addDictionary(csharpDictionary);
const text = 'public class MyClass { private int myField; }';
const options = { language: 'en', dictionaries: ['csharp'] };
cspell.checkText(text, options).then(result => {
console.log(result);
});
@cspell/dict-python provides a dictionary of Python-specific terms for the CSpell spell checker. Similar to @cspell/dict-csharp, it helps ensure that Python code comments, documentation, and strings are free from spelling errors by recognizing Python terminology.
@cspell/dict-java offers a dictionary of Java-specific terms for the CSpell spell checker. It functions similarly to @cspell/dict-csharp by recognizing Java terminology and helping developers maintain spelling accuracy in their Java code comments and documentation.
Csharp dictionary for cspell.
This is a pre-built dictionary for use with cspell.
Tool | Version |
---|---|
cspell | >= 6 |
Code Spell Checker - Visual Studio Code | >= 2 |
Global Install and add to cspell global settings.
npm install -g @cspell/dict-csharp
cspell link add @cspell/dict-csharp
cspell link remove @cspell/dict-csharp
The cspell-ext.json
file in this package should be added to the import section in your cspell.json file.
{
// …
"import": ["@cspell/dict-csharp/cspell-ext.json"],
// …
}
Building is only necessary if you want to modify the contents of the dictionary. Note: Building will take a few minutes for large files.
npm run build
MIT
Some packages may have other licenses included.
FAQs
C# dictionary for cspell.
We found that @cspell/dict-csharp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.