- Locate the Visual Studio Code's installation directory (usually this is
C:\Users\<UserName>\AppData\Local\Code\app-<version>
where<UserName>
is the current Windows user name, and where<version>
is the version you want to modify [e.x.0.4.1
]) - Navigate to
<InstallPath>\resources\app\plugins
where<InstallPath>
is the path you located in step 1. - Create a new folder named
vs.language.d
and open it. - Inside of
vs.landuage.d
create a new folder namedsyntaxes
and open it. - Save or download the
d.json
file in this gist and place it inside thesyntaxes
folder. - Restart all instances of Visual Studio Code.
- Done.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module annotations; | |
private { | |
import std.string; | |
import std.traits; | |
import std.array; | |
} | |
private template TargetInfo( alias target ) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module envy; | |
version( Windows ): | |
private { | |
import std.windows.registry; | |
} | |
private enum ENV_KEY = "Environment"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct NotNull<T> where T : class | |
{ | |
private T mValue; | |
public T Value | |
{ | |
get { return this.mValue; } | |
set | |
{ | |
if( value == null ) | |
throw new ArgumentNullException( "value" ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module lines; | |
import std.file; | |
import std.path; | |
import std.stdio; | |
import std.regex; | |
import std.getopt; | |
import std.string; | |
import std.traits; | |
import std.algorithm; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final struct Callback( TRet = void, TArgs ... ) | |
{ | |
public alias TRet delegate( TArgs ) DelegateType; | |
public alias TRet function( TArgs ) FunctionType; | |
private DelegateType dg; | |
private FunctionType fn; | |
public this( DelegateType dg ) { this.dg = dg; } | |
public this( FunctionType fn ) { this.fn = fn; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module grep; | |
private: | |
import std.stdio; | |
import std.regex; | |
import std.getopt; | |
import std.range; | |
import std.file; | |
import std.path; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name FAKKU! Download | |
// @namespace https://github.com/SirTony | |
// @version 1.8 | |
// @description Enables direct-downloads on FAKKU.net | |
// @author Tony J. Ellis | |
// @include /^https?:\/\/(?:www\.)?fakku\.net\/(?:manga|doujinshi)/ | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jszip/2.4.0/jszip.min.js | |
// @require https://raw.githubusercontent.com/Stuk/jszip-utils/master/dist/jszip-utils.min.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A pre-allocated pool of objects with the ability to sort | |
/// and maintain objects as they become invalidated. | |
/// </summary> | |
/// <typeparam name="T">The type of object the pool will hold.</typeparam> | |
public class ResourcePool<T> where T : class | |
{ | |
#region Variables | |
private ValidateObject objectCheck; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [PackageDev] target_format: plist, ext: tmLanguage | |
--- | |
name: Mond | |
scopeName: source.mond | |
fileTypes: [ mond, mnd ] | |
uuid: 0a4b2933-843d-45c6-bd2f-6615d69f3800 | |
# This syntax definition could be a lot more advanced, | |
# but it properly colours all the important stuff, | |
# so it's good enough for now. |