Vscode-restclient: Allow query strings spread into multiple lines

Created on 22 Jul 2016  路  13Comments  路  Source: Huachao/vscode-restclient

Steps to Reproduce:

some queries to api are really lng and writing them in single line is making everything worse
it could be so nice to split parts into lines but when i do this the request wont work

enhancement

All 13 comments

@NikosEfthias , I am considering this, and since I am busy these days, I will implement this ASAP, sorry for the inconvenience.

awesome thank you :+1:

@NikosEfthias, when I think about this feature recently, I found that allowing request cross over multiple lines will have a problem that syntax highlight not working. And I think one simple way to this is just word wrap in Visual Studio Code by View->Toggle Word Wrap.

wordwrap is great but it does not allow you to break from the place you wish

@NikosEfthias good point, I know your pain, but I am not sure how much value to break as you wish for most people :cry: Could you provide me a scenario?

as i told a really long get query each part after ? could be in a new line terminated by \ so it could be really easy to editvalues

@NikosEfthias agree

at the moment it is really pain to horizontal scroll for changing something and even more difficult when its half of the screen

@NikosEfthias I'd like to ONLY spread query string into multiple lines
Following requests will be equivalent:

GET https://example.org/items?name=hello&type=world

or

GET https://example.org/items
?name=hello
&type=world

or

GET https://example.org/items
?name=hello&type=world
GET https://example.org/items
?name=hello
&type=world

this is way more clear

@NikosEfthias I have
Following requests will be equivalent:

GET https://example.org/items?name=hello&type=world

or

GET https://example.org/items
?name=hello
&type=world

when is the update gonna be ready ?

@NikosEfthias I have published a new version 0.7.4, you can try to verify. Thanks

Was this page helpful?
0 / 5 - 0 ratings