Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>tarojsNew to Visual Studio Code? Get it now.
tarojs

tarojs

fangkyi03

|
3,079 installs
| (0) | Free
tarojs代码辅助,代码片段自动完成
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

tarc

  import Taro from '@tarojs/taro';
  import { View, Text } from '@tarojs/components';
  
  export default class Test extends Taro.Component {
    render() {
      return (
        <View>
          <Text> Test </Text>
        </View>
      );
    }
  }

tarcs

import Taro from '@tarojs/taro';
import { View, Text } from '@tarojs/components';
import styles from './index.scss'

export default class Test extends Taro.Component {
  render() {
    return (
      <View className={styles.main}>
        <Text> Test </Text>
      </View>
    );
  }
}

tarTCS

import Taro from '@tarojs/taro';
import { View, Text } from '@tarojs/components';
import styles from './index.scss'

export default class Test extends Taro.Component {

config = {
navigationBarTitleText: '首页'
};

  render() {
    return (
      <View className={styles.main}>
        <Text> Test </Text>
      </View>
    );
  }
}

希望大家能将自己常用的代码模板通过issues的方式发布上来 让这个项目越做越完美 https://github.com/fangkyi03/taroTool.git

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft