Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ pids
out/**/*.js
out/**/*.js.map
node_modules
doc
doc

# Builds
*.vsix
*.zip
36 changes: 23 additions & 13 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,27 @@

// A task runner that calls a custom npm script that compiles the extension.
{
"version": "0.1.0",
"version": "2.0.0",

// we want to run npm
"command": "npm",
// the command is a shell script
"isShellCommand": true,
// The tsc compiler is started in watching mode
"isWatching": true,
"showOutput": "silent",
"args":["run","compile","--loglevel", "silent"],
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"

}
// we want to run npm
"command": "npm",
// The tsc compiler is started in watching mode
"isWatching": true,
"args": ["run", "compile", "--loglevel", "silent"],
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch",
"tasks": [
{
"label": "npm",
"type": "shell",
"command": "npm",
"args": ["run", "compile", "--loglevel", "silent"],
"isBackground": true,
"problemMatcher": "$tsc-watch",
"group": {
"_id": "build",
"isDefault": false
}
}
]
}
24 changes: 24 additions & 0 deletions .vscode/tasks.json.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls a custom npm script that compiles the extension.
{
"version": "0.1.0",

// we want to run npm
"command": "npm",
// the command is a shell script
"isShellCommand": true,
// The tsc compiler is started in watching mode
"isWatching": true,
"showOutput": "silent",
"args":["run","compile","--loglevel", "silent"],
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"

}
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[![Build Status](https://travis-ci.org/windwp/vscode-expand-region.svg?branch=master)](https://travis-ci.org/windwp/vscode-expand-region)

# vscode-expand-region
porting sublime-expand-region to visual code
https://github.com/aronwoost/sublime-expand-region

### Only support javascript and html now ,it will support python and latex in a future

### JavaScript
### JavaScript/TypeScript
![](https://raw.githubusercontent.com/windwp/vscode-expand-region/master/image/javascript.gif)
1. Expand selection to word
2. Expand selection to quotes (content only)
Expand All @@ -20,8 +19,7 @@ https://github.com/aronwoost/sublime-expand-region
and so on...


### HTML/PHP

### HTML/PHP/Astro
![](https://raw.githubusercontent.com/windwp/vscode-expand-region/master/image/html.gif)

1. Expand selection to word
Expand All @@ -46,12 +44,19 @@ and so on...
"key": "ctrl+shift+w","command": "undo_expand_region", "when": "editorTextFocus && editorHasSelection"
}
```
## development

## Development
1. npm install
2. npm compile (compile typescript)
3. npm test:watch (run mocha for test)

## Roadmap
- Support Python and Latex

# Changelog
## 0.1.2
* support astro

## 0.1.2
* support php

Expand All @@ -61,6 +66,6 @@ and so on...

## 0.0.2
* add feature undo_expand_region
## 0.0.1

## 0.0.1
* first release
Loading