当前位置: 首页 > 软件库 > 手机/移动开发 > >

vscode-nativescript-extend

授权协议 MIT License
开发语言 JavaScript TypeScript
所属分类 手机/移动开发
软件类型 开源软件
地区 不详
投 递 者 卞博简
操作系统 iOS
开源组织
适用人群 未知
 软件概览

NativeScript Extend for Visual Studio Code

Nativescript Extend packs all your needs in make your Nativescript projects fast and easy.

This extension will only be available on Nativescript projects.

This extension comes with snippets, emulator executor, context menu for Nativescript project, snippet toggler and a XML widgets, attributes, parameter validator and intelisense. With all this listed you now have a perfect extention that will help you on your Nativescript projects.

  • All UI layout and widget are prefixed with NS. Attributes do not have or need any prefix.
  • You can toggle the snippets off and on, if you want to use the xml intellisense.

Please note: To get the best out of this extension you wil have to disable or uninstall any nativescript snippets extension.

Please if anyone has any feature or fix on this extension, please kindly make a request on our Github repository.

Changes

[2.11.11] - 2020-9-5 7,748

  • Minor fix
  • Context Menu fix
  • Command palette commands fix
  • Package/extension has changed ownership to Bracketcore

Features

Nativescript intellisense and XML validation.

Emulator

Emulator auto setup

Snippets

Snippets toggler

Explorer Context Menu Page Creation,

Snippets Components keys

Layouts

  • Absolute Layout - NSabsolute
  • Flexbox Layout - NSflex
  • Dock Layout - NSdock
  • Grid Layout - NSgrid
  • Stack Layout - NSstack
  • Wrap Layout - NSwrap

Widgets

  • Page - NSpage
  • Action Bar - NSactionbar
  • Label - NSlabel
  • Text Field - NStextfield
  • Text View - NStextview
  • Image - NSimg
  • Border - NSborder
  • BottomNavigation - NSBottomNav
  • TabStrip - NSTabStrip
  • TabStripItem - NSTabStripItem
  • TabContentItem - NSTabContentItem
  • Button - NSbtn
  • Search Bar - NSsearchbar
  • Switch - NSswitch
  • Slider - NSslider
  • Progress - NSprogress
  • Activity Indicator - NSloading
  • Date Picker - NSdate
  • Time Picker - NStime
  • List Picker - NSlistpicker
  • Segmented Bar - NSsegmentedbar
  • Scroll View - NSscrollview
  • Tab View - NStabview
  • List View - NSlistview
  • Web View - NSwebview
  • Repeater - NSrepeater
  • Password Field - NSpassword
  • Action Item - NSactionItem

Attributes

  • backgroundColor - bgColor
  • backgroundImage - bgImage
  • borderColor - borderColor
  • borderWidth - borderWidth
  • translateX - translateX
  • translateY - translateY
  • margin - margin
  • opacity - opacity
  • style - style
  • iosOverflowSafeArea - iosOverflowSafeArea
  • cssClass - class
  • left - left
  • right - right
  • top - top
  • bottom - bottom
  • action Bar Hidden - actionBarHidden
  • Icon - icon
  • xmlns - xmlns
  • text - text
  • icon - icon
  • textWrap - wrap
  • horizontalAlignment - halign
  • verticalAlignment - valign
  • visibility - visibility
  • stretch - stretch
  • keyboardType - kbtype
  • colSpan - colspan
  • rowSpan - rowspan
  • row - row
  • col - col
  • width - width
  • height - height
  • itemWidth - itemWidth
  • itemHeight - itemHeight
  • colspan - colspan
  • rowspan - rowspan
  • dock - dock
  • stretchLastChild - stretchLastChild
  • flexDirection - flexDirection
  • flexWrap - flexWrap
  • justifyContent - justifyContent
  • alignItems - alignItems
  • alignContent - alignContent
  • order - order
  • flexGrow - flexGrow
  • flexShrink - flexShrink
  • alignSelf - alignSelf
  • flexWrapBefore - flexWrapBefore

Gestures Attributes

  • tap - tap
  • @tap - @tap
  • doubleTap - doubleTap
  • longPress - longPress
  • pan - pan
  • pinch - pinch
  • rotation - rotation
  • swipe - swipe
  • touch - touch

How to use Nativescript Extend

  • Install Nativescript Extend from VScode marketplace.
  • Active the extension.
  • Create/run a Nativescript project.
  • Nativescript detects a NS project and auto enable the emulator and ask to add xml validation for the project.
  • Right click on the explorer panel area and create your prefered project framework page.
  • Open a xml/html/vue file and get Nativescript Extend snippet on by defualt.
  • Type NS prefix for widget and layouts snippets.
  • Type your prefered attributes. Attributes dont need any prefix.

MIT License

Copyright (c) 2018 Paul Ehigie

Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.

  • 风格的重要性 如果你已经从事编码工作有一段时间了的话,那你肯定会有一种自己喜欢的风格。当你成百上千次以特定的模式编写代码时,你会发现你的编码方式是令人愉悦的。突然间来了个人,开始把挂在行尾的大括号单起一行。你可能会发牢骚。深呼吸冷静思考一下,你放置括号的位置 或 关键字后加空格 不会让你的程序更加正确,这只是个人喜好。 JavaScript 没有官方的编码风格指南 采用 standard 编码风格

  • 目标 使用 Eslint 规范代码。 格式化代码时使用 Eslint 规范。 工具 VSCode Eslint Prettier 二步实现 1. 让 vscode 格式化时默认使用 Prettier 打开 settings.json 配置文件: On Windows/Linux - File > Preferences > Settings On macOS - Code > Preference

  • { root: true, // 当前配置为根配置,将不再从上级文件夹查找配置 parserOptions: { parser: 'babel-eslint', // 采用 babel-eslint 作为语法解析器 sourceType: 'module', // 指定来源的类型,有两种script或module ecmaVersion: 6, //指定ECMAScript支持的版本,6为

  • setting.json配置 .vscode中setting.json配置(优先级大于上面的) { // vscode默认启用了根据文件类型自动设置tabsize的选项 "editor.detectIndentation": false, // 重新设定tabsize "editor.tabSize": 2, // #每次保存的时候自动格式化 "editor.formatO

 相关资料
  • NativeScript 可以使用 Javascript,CSS, XML 创建真正的 Native 跨平台应用,支持 iOS Android,NativeScript 将您的跨平台代码翻译成目标平台的代码。 UI 使用 XML 描述,CSS 样式,在编译时将 UI 转化成本地原生代码,最终得到正在的 Native 原生应用。 Telerik 公开了用于创建安卓、iOS和Windows Unive

  • Visual Studio Code - Open Source ("Code - OSS") The Repository This repository ("Code - OSS") is where we (Microsoft) develop the Visual Studio Code product together with the community. Not only do we

  • NativeScript Command-Line Interface The NativeScript CLI lets you create, build, and deploy NativeScript-based apps on iOS and Android devices. Get it using: npm install -g nativescript What is Native

  • NativeScript-Snackbar �� �� �� NativeScript plugin for Material Design SnackBar component. Installation: NativeScript 7+:tns plugin add @nstudio/nativescript-snackbar NativeScript version prior to 7:t

  • Nativescript-Ripple This plugin aims to bring a native (or close to native) ripple implementation on Android and iOS. The android version uses a RippleDrawable and conserves the previous background, a

  • NativeScript-FloatingActionButton NativeScript plugin for Material Design Floating Action Button UI component. Installation Nativescript 7+: ns plugin add @nstudio/nativescript-floatingactionbutton Na