To open the settings, use the following key combinations:
- MacOS: Command + Shift + P
- Windows/Linux: Control + Shift + P
In the search box, type "Preferences: Open Settings (JSON)".
Themes:
- Omni Theme
- Aura Theme
- Vesper++ Theme
- Vue Theme
- Fedora GNOME light & dark themes
- Visual Studio 2019 Light
Icons
Font:
If you're using Fedora Linux, install the FiraCode font by running the following command:
sudo dnf install fira-code-fonts
This repository contains a collection of useful TypeScriptReact snippets for Visual Studio Code. These snippets are designed to enhance your development experience by providing quick and efficient code generation for common patterns in TypeScriptReact development.
To use these snippets in Visual Studio Code, follow these steps:
- Code > Preferences > Configure User Snippets
- typescriptreact.json
Trigger: log
console.log("### $TM_FILENAME line $TM_LINE_NUMBER: ", $1);
Description: Log output to console.
Trigger: aaa
import React from "react";
import { View } from "react-native";
export const $TM_FILENAME_BASE = (): JSX.Element => {
return (
<View>
<View />
</View>
);
};
$0;
Description: Create a TypeScript React-Native functional component.
Trigger: sss
import React from "react";
import { View, StyleSheet } from "react-native";
export const $TM_FILENAME_BASE = (): JSX.Element => {
return (
<View style={styles.container}>
<View />
</View>
);
};
const styles = StyleSheet.create({
container: {
//$0
},
});
Description: Create a TypeScript React-Native functional component with styles.
- Open a TypeScriptReact file in Visual Studio Code.
- Type the snippet's trigger (e.g.,
log
,aaa
,sss
). - Press
Tab
to expand the snippet.
These snippets are designed to save you time and improve your TypeScriptReact development workflow. Feel free to customize them to suit your specific needs.